Matches Carefully
match_carefully.RdWrapper 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
xmatching a value in this vector is assigned thenomatchvalue. For historical reasons,FALSEis equivalent toNULL.