[R] How to doulbe all the value on a matrix

Pete Brecknock Peter.Brecknock at bp.com
Mon Jan 17 15:08:55 CET 2011


typo ...

should have been

m = matrix(c(7,11,15,17,10,19,4,18,18), nrow = 3, ncol=3)

sum_m = sum(m)

new_m = sum_m-m
-- 
View this message in context: http://r.789695.n4.nabble.com/How-to-doulbe-all-the-value-on-a-matrix-tp3221213p3221216.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list