match(x, table, ...) # S3 method for default match(x, ...) # S3 method for rvar match(x, ...) x %in% table
(multiple options) the values to be matched. Can be:
(vector) the values to be matched against.
Arguments passed on to
the value to be returned in the case when no match is
found. Note that it is coerced to
a vector of values that cannot be matched. Any
x matching a value in this vector is assigned the
nomatch value. For historical reasons,
x is a base vector, a vector of the same length as
For more information on how match behaves with base vectors, see
The implementation of
%in% here is identical to
it uses the generic version of
match() so that non-base vectors (such
as rvars) are supported.