Negation of the %in%
operator, see ?match
.
%notin%
is the negation of %in%
, which returns a logical vector indicating if there is a non-match or not for its left operand.
x %notin% table
vector or NULL
: the values to be matched.
vector or NULL
: the values to be matched against.
A logical vector, indicating if a non-match was located for each element of x
: thus the values are TRUE
or FALSE
and never NA
.