Re: [R] what command to use for standization

2010-05-29 Thread Jorge Ivan Velez
?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)})

[R] what command to use for standization

2010-05-29 Thread Philip Wong
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 co