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

From: Taka Matzmoto <sell_mirage_ne_at_hotmail.com>
Date: Sun, 27 May 2007 14:38:39 -0500


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.



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 27 May 2007 - 19:43:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 May 2007 - 21:32:04 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.