grapes-not-in-grapes: Negation of the in (w. grapes) operator

%!in%R Documentation

Negation of the ⁠in⁠ (w. grapes) operator

Description

⁠%!in%⁠ is used to test if elements of one vector are not present in another vector. It is the negation of the %in% operator. This operator returns TRUE for elements of x that are not in y.

Usage

x %!in% y

Arguments

x

A vector of values to be matched.

y

A vector of values to be matched against.

Value

A logical vector indicating if elements in x are not present in y.

Examples

c(1, 2, 3) %!in% c(2, 4, 6)
# [1]  TRUE FALSE  TRUE

vertesy/Stringendo documentation built on Nov. 10, 2024, 4:35 a.m.