grapes-nin-grapes: %nin%

%nin%R Documentation

%nin%

Description

Negation of the built-in %in% operator. %nin% is a short-hand for !( a %in% b ).

Usage

a %nin% b

Arguments

a

Any R object for which the binary operator %in% is defined. This would include many built-in R primitives.

b

Any R object for which the binary operator %in% is defined. This would include many built-in R primitives.

See Also

%in%

Examples

# 4 is not an element in {5,6,7}.
4 %nin% 5:7  # Evaluates to TRUE

# 4 is an element in {4,5,6,7}.
4 %nin% 4:7  # Evaluates to FALSE

TSDT documentation built on April 7, 2022, 1:07 a.m.

Related to grapes-nin-grapes in TSDT...