[R] How to doulbe all the value on a matrix
Peter.Brecknock at bp.com
Mon Jan 17 15:06:29 CET 2011
If I have understood your question correctly, how about the following ...
m = matrix(c(7,11,15,17,10,19,4,18,18), nrow = 3, ncol=3)
sum_m = sum(m)
new_m = summ-m
View this message in context: http://r.789695.n4.nabble.com/How-to-doulbe-all-the-value-on-a-matrix-tp3221213p3221215.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help