notin: Inverse match

notinR Documentation

Inverse match

Description

Flags the elements of x that are not in y.

Usage

x %notin% y

Arguments

x

(Vector) The values to be matched. Long vectors (2^31 elements) are supported.

y

(Vector) The values to be matched against. Long vectors are not supported.

Value

A logical vector of the same length as x, with TRUE if the element was found in y, and FALSE if it was not.

Authors

Examples

c(1, 4, 21, 7, -3) %in% 0:10
#> [1]  TRUE  TRUE FALSE  TRUE FALSE

c(1, 4, 21, 7, -3) %notin% 0:10
#> [1] FALSE FALSE  TRUE FALSE  TRUE


DesiQuintans/desiderata documentation built on April 9, 2023, 5:43 a.m.