[R] subtract the mean from each column

kayj kjaja27 at yahoo.com
Thu Apr 10 19:03:02 CEST 2008


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  
View this message in context: http://www.nabble.com/subtract-the-mean-from-each-column-tp16610489p16610489.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list