Check if values in a vector, x, are or are not in vector y.

x %notin% y

Arguments

x

a vector of values

y

a vector of values of the same length as x for comparison

Value

A vector of Boolean values the same length as x and y

Author

Adam Sparks, adamhsparks@gmail.com

Examples

 x <- 1:5
 y <- 3:7
 x %notin% y
#> [1]  TRUE  TRUE FALSE FALSE FALSE