Matches Carefully
match_carefully.Rd
Wrapper for base::match()
that will NOT match NA
values. Uses
dplyr::if_else()
to skip NA
values.
Arguments
- x
vector or
NULL
: the values to be matched. Long vectors are supported.- table
vector or
NULL
: the values to be matched against. Long vectors are not supported.- nomatch
the value to be returned in the case when no match is found. Note that it is coerced to
integer
.- incomparables
a vector of values that cannot be matched. Any value in
x
matching a value in this vector is assigned thenomatch
value. For historical reasons,FALSE
is equivalent toNULL
.