Re: [R] Deleting rows with missing data

From: Weidong Gu <wgu_at_uab.edu>
Date: Mon, 21 Apr 2008 08:07:25 -0500

?na.omit

Weidong Gu,

Department of Medicine
University of Alabama, Birmingham
1900 University Blvd., Birmingham, Alabama 35294 Email: wgu_at_uab.edu
PH: (205)-975-9053

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of Charles Vetterli
Sent: Monday, April 21, 2008 7:44 AM
To: R-help_at_r-project.org
Subject: [R] Deleting rows with missing data

Hi folks:  

I have a data set v1, v2, ... v10.
Can anyone tell me how to create a new data set where the entire row is deleted if, say, v5, is missing, is NA on that row?

Thanks,
Charles



R-help_at_r-project.org 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.

R-help_at_r-project.org 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 Mon 21 Apr 2008 - 13:11:05 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 Mon 21 Apr 2008 - 13:30:32 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.

list of date sections of archive