| .in. {Hmisc} | R Documentation |
For two vectors or scalars a and b,
%nin% returns
TRUE if the element in a is not in b.
a %nin% b
a |
a vector (numeric, character, factor) |
b |
a vector (numeric, character, factor), matching the mode of a |
vector of logical values with length equal to length of a.
c('a','b','c')