See base::
for details. %nin%
is a binary operator,
returning a logical vector indicating if there is a negative match or not.
Usage
lhs %in% rhs
Arguments
- lhs
vector or NULL: the values to be matched.
Long vectors
are supported.- rhs
vector or NULL: the values to be matched.
Long vectors
are supported.
See also
Other Utility functions:
capwords()
,
named_group_split()
,
rm_inf_na()
,
subset_fns_Zr()
,
subset_fns_yi()
Examples
"A" %nin% LETTERS[1:10]
#> [1] FALSE
"A" %in% LETTERS[1:10]
#> [1] TRUE