This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: factor.
match(x, table, nomatch=NA, incomparables=F)
match(data, primes) match(data, primes, incomp=2) # match to all primes but 2 state.abb[match(names, state.name)] #change names to abbrevs names[match(allnames, names, 0)] #those names also found in allnames