Description Usage Arguments Details Value Author(s) Examples
Convenience 'not-in' operator
1 | x %nin% y
|
x |
vector of items |
y |
vector of all values |
Complement of the built-in operator %in%
. Returns the elements of x
that are not in y
.
logical vecotor of items in x not in y
Kieran Healy
1 2 3 | fruit <- c("apples", "oranges", "banana")
"apples" %nin% fruit
"pears" %nin% fruit
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.