Skip to contents

Binary operator which returns a logical vector indicating if there is not a match for x in y.

Usage

x %nin% y

Arguments

x, y

vectors or NULL. LongVectors not supported for y.

Value

A logical vector of the same length as x.

Examples

c(1, 2, 3,'a','b','c') %!in% letters
#> Error in c(1, 2, 3, "a", "b", "c") %!in% letters: could not find function "%!in%"
## TRUE TRUE TRUE FALSE FALSE FALSE