%notin% | R Documentation |
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
x |
vector or |
table |
vector or |
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
.
"a" %notin% letters
"a" %notin% LETTERS
c("a", "A") %notin% letters
letters %notin% c("a", "b", "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.