[R] Extract NA data rows

typhoong graham.li at eurus-energy.com
Tue Jan 25 08:07:10 CET 2011


hi i have the following dataframe 

x	y
1	345
6	NA
8	123
32	123
12	NA
6	124
7	NA

and i want to extract the data rows which contains "NA" data, I tried

subset(dataframe,y=="NA") 

but fail. if you know the answers, please let me know thanks.

typhoong






-- 
View this message in context: http://r.789695.n4.nabble.com/Extract-NA-data-rows-tp3235568p3235568.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list