[R] How to remove 'NA's?

Peng Yu pengyu.ut at gmail.com
Tue Sep 15 23:05:01 CEST 2009


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




More information about the R-help mailing list