[R] a question about deleting rows

karena dr.jzhou at gmail.com
Wed Jan 13 23:15:05 CET 2010


I have a file like this:
id    n1    n2   n3   n4   n5   n6  
1      3     4    7     8     10    2
2      4     1    2     4     3     10
3      7     0    0     0     0     8
4      10    1    0     0     2     3
5      11    1    0     0     0     5

what I want to do is: only if n2=0 and n3=0 and n4=0 and n5=0 then delete
the row. how can I do that?

thank you,

karena 
-- 
View this message in context: http://n4.nabble.com/a-question-about-deleting-rows-tp1013403p1013403.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list