[R] How to remove 'NA's?
Erik Iverson
eiverson at NMDP.ORG
Tue Sep 15 23:10:29 CEST 2009
Well, how about the nomatch argument to the match function, see ?match . The nomatch argument is NA by default.
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Peng Yu
Sent: Tuesday, September 15, 2009 4:05 PM
To: r-help at stat.math.ethz.ch
Subject: [R] How to remove 'NA's?
Hi,
> match(c(3,4), c(3,2,1))
[1] 1 NA
The above result has 'NA' in. Is there a way to make 'match' does not
produce any 'NA's?
Regards,
Peng
______________________________________________
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