R/genList.r

Defines functions genList

Documented in genList

#'Internal function for rdacca.hp()
#' @param  ivlist The names of explanatory variable.
#' @param  value  The sequence ID.
#' @keywords internal

genList <-
function(ivlist, value){
numlist  <-  length(ivlist)
newlist <- ivlist
newlist <- 0
for (i in 1:numlist){
	newlist[i] <- abs(ivlist[i])+abs(value)
	if (((ivlist[i]<0) && (value >= 0))|| ((ivlist[i]>=0) && (value <0)))newlist[i]=newlist[i]*-1
}
return(newlist)
}

Try the rdacca.hp package in your browser

Any scripts or data that you put into this service are public.

rdacca.hp documentation built on Sept. 11, 2024, 8:05 p.m.