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@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.