[R] manipulating a matrix

Clark Johnston clarkstat at clarktx.com
Wed May 12 21:14:06 CEST 2010


Is there a way to create a new matrix from and existing matrix with

A
          [,1]     [,2]
[1,]      1        13
[2.]      2        18 
[3,]      3        14
[4,]      4        20

if(A[,2] > 15)
   
B
       [,1]   [,2]    
[1,]   2      18
[2,]   4      20


-- 
View this message in context: http://r.789695.n4.nabble.com/manipulating-a-matrix-tp2196610p2196610.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list