R/genList.R

Defines functions genList

Documented in genList

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 yhat package in your browser

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

yhat documentation built on Oct. 11, 2023, 1:08 a.m.