Skip to contents

This is the negation of the %in% operator.

Usage

x %notin% y

Arguments

x

A vector or NULL: the values to be matched.

y

A vector or NULL: the values to be checked for no match.

Value

A logical vector, indicating if a match was not located for each element of x (i.e., the values are TRUE or FALSE).

See also

Examples

"a" %notin% c("b", "c")
#> [1] TRUE