notin.Rd
Check if values in a vector
, x
, are or are not in vector y
.
x %notin% y
a vector
of values
a vector
of values of the same length as x
for comparison
A vector
of Boolean
values the same length as x
and y
x <- 1:5
y <- 3:7
x %notin% y
#> [1] TRUE TRUE FALSE FALSE FALSE