[R] Deleting rows with missing data
Weidong Gu
wgu at uab.edu
Mon Apr 21 15:07:25 CEST 2008
?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.
More information about the R-help
mailing list