notin.Rd
Check whether an object is absent from a table, i.e., the logical inverse of in
.
x %notin% table
Vector or NULL
: the values to be matched.
Vector or NULL
: the values to be matched against.
Logical vector, TRUE
for each element of x
absent from table
, and FALSE
for each element of x
present in table
.
11 %notin% 1:10 # TRUE
#> [1] TRUE
"a" %notin% c("a", "b") # FALSE
#> [1] FALSE