R/standardize.R

Defines functions standardize

Documented in standardize

standardize <-
function(Covars)
{
	for(i in 1:ncol(Covars))
	{
	 rg<-range(Covars[,i])
     Covars[,i]<-(Covars[,i]-min(Covars[,i]))/(rg[2] - rg[1])
    } # end for
    Covars
}

Try the MetabolAnalyze package in your browser

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

MetabolAnalyze documentation built on May 30, 2017, 2:26 a.m.