Re: [R] subtract the mean from each column

2008-04-10 Thread Henrique Dallazuanna
Or just: scale(mymat, scale = FALSE) On Thu, Apr 10, 2008 at 2:03 PM, kayj <[EMAIL PROTECTED]> wrote: > > Hi, > > I am new to R an dI need some help > I have a matrix of real values 100*300 and I would like to calculate the > mean for each column , then for each entry in a column i need to subtr

Re: [R] subtract the mean from each column

2008-04-10 Thread Chuck Cleland
On 4/10/2008 1:03 PM, kayj wrote: > Hi, > > I am new to R an dI need some help > I have a matrix of real values 100*300 and I would like to calculate the > mean for each column , then for each entry in a column i need to subtract > the mean so I will have a matrix where the columns have zero mean.

[R] subtract the mean from each column

2008-04-10 Thread kayj
Hi, I am new to R an dI need some help I have a matrix of real values 100*300 and I would like to calculate the mean for each column , then for each entry in a column i need to subtract the mean so I will have a matrix where the columns have zero mean. any one know how to do that . Thanks -- V