%not_in% | R Documentation |
The binary operator %not_in%
returns a logical
vector indicating if there is no matches for its left
operand.
x %not_in% y
x |
A vector of values to be matched. |
y |
A vector of values to be matched against. |
A logical vector equal to TRUE
for all elements
in x
that did not match any elements in y
.
Kevin Potter
x <- c( "Cat", "Dog", "Bat" )
y <- c( "Cat", "Dog" )
x %not_in% y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.