grapes-nin-grapes: Determine non-matches of one vector to another

%nin%R Documentation

Determine non-matches of one vector to another

Description

Determine the members of one vector that are NOT found in another vector. This is equivalent to !(x %in% y), but is a useful shortcut. Borrowed from Stephen Turner.

Usage

x %nin% y

Arguments

x

vector to be matched to elements in y.

y

vector to be searched for elements of x.

Value

a logical vector with one element for each element in x


mjdufort/miscHelpers documentation built on Feb. 4, 2024, 7:44 p.m.