match {rindex} | R Documentation |
Match values in index
match(x, table, nomatch = NA, incomparables = FALSE) x %in% table
x |
a set of search values |
table |
an object of class ‘index’ or a simple vector |
nomatch |
the value to return for non-matches (default NA) |
incomparables |
not yet used |
match | redefined version of match automatically recognizing index tables |
%in% | redefined version of %in% (redefinition needed for finding redefined match in spite of namespaces) |
Function match
returns a vector of original positions (or the nomatch value NA), function %in%
returns a logical vector.
Jens Oehlschlägel