grapes-nin-grapes: Non-matching comparison

%nin%R Documentation

Non-matching comparison

Description

Returns a logical vector indicating if there is a non-match or match for its left operand. Inverse action relatively to %in% function

Usage

x %nin% y

Arguments

x

vector of values to be matched

y

vector of values to be matched against.

Value

logical vector of TRUE (non-match) and FALSE (match).

See Also

%in%.

Examples

set.seed(42)
a <- c(1,2,15)
b <- 1:10
a %nin% b
!(a %in% b)

DrrDom/pfpp documentation built on March 26, 2024, 1:02 a.m.