[R] removing particular row from matrix

uday uday_143_4u at hotmail.com
Tue Feb 21 16:52:20 CET 2012


I have some data set which has some values -999.000 & I would like to remove
whole row of this kind of values.  

e.g 
a<-matrix(c(1,2,3,4,4,5,6,6,-999.99,5,9,-999.00),nrow=4)
a<-  
[,1]    [,2]     [,3]
[1,]    1    4  -999.99
[2,]    2    5    5.00
[3,]    3    6    9.00
[4,]    4    6 -999.00

expected answer 

        [,1] [,2]    [,3]
[1,]    2    5    5.00
[2,]    3    6    9.00

I am new in R & I got stuck with this step. 

Uday 

--
View this message in context: http://r.789695.n4.nabble.com/removing-particular-row-from-matrix-tp4407401p4407401.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list