[R] ANSWER :removing all NA rows from a data.frame

Taka Matzmoto sell_mirage_ne at hotmail.com
Sun May 27 21:38:39 CEST 2007


R users
I found a solution for myself
if the data.frame name is x

x[!(is.na(x[,1])),]

I tend to rely on a looping thing, which is a bad habit.

Thanks

_________________________________________________________________
PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows 
Live Hotmail.



More information about the R-help mailing list