?scale
HTH,
Jorge
On Sun, May 30, 2010 at 12:20 AM, Philip Wong <> wrote:
>
> 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.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]