[R] what command to use for standization

Philip Wong tombfighter at mysinamail.com
Sun May 30 06:20:20 CEST 2010


what command to use to standardize my data to mean = 0, and SD=1.  
the data I want to standardize/centroid is in column format.

So I'm thinking of using:
col.mean.stdised=apply(data.df,2,function(z){z-mean(z)})

but, what command should I use to put my SD =1? 
Thanks!
-- 
View this message in context: http://r.789695.n4.nabble.com/what-command-to-use-for-standization-tp2236074p2236074.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list