[R] Is there a neat R trick for this?

Rainer Hurling rhurlin at gwdg.de
Tue Feb 12 11:14:31 CET 2013


Am 12.02.2013 11:09 (UTC+1) schrieb Robert Latest:
> x <- c(4,5,6)
> y <- c(10,1,5,12,4,13,14)

Please try

#match(x,y)
[1]  5  3 NA

HTH,
Rainer Hurling



More information about the R-help mailing list