[R] how to divide each column in a matrix by its colSums?
casperyc at hotmail.co.uk
Sun Nov 28 21:46:32 CET 2010
I have a matrix, say
i can find its row/col sum by
How do I divide each row/column by its rowSum/colSums and still return in
the matrix form?
(i.e. the new rowSums/colSums =1)
View this message in context: http://r.789695.n4.nabble.com/how-to-divide-each-column-in-a-matrix-by-its-colSums-tp3062739p3062739.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help