Convenience 'not-in' operator
x %nin% y
x | vector of items |
---|---|
y | vector of all values |
logical vecotor of items in x not in y
Complement of the built-in operator %in%
. Returns the elements of x
that are not in y
.
Kieran Healy
#> [1] FALSE"pears" %nin% fruit#> [1] TRUE