negative match {memisc} | R Documentation |
%nin%
is a convenience operator:
x %nin% table
is equivalent to
!(x %in% table).
x %nin% table
x |
the values to be matched |
table |
a values to be match against |
A logical vector
x <- sample(1:6,12,replace=TRUE)
x %in% 1:3
x %nin% 1:3