notin: Not in (opposite to %in%)

Description Usage Arguments See Also Examples

Description

An easier and more logical way to express "elements of object X not in object Y"; %in% and %nin% are wrappers for match; returns a vector of booleans.

Usage

1
x %nin% table

Arguments

x

vector or NULL: the values to be matched. Long Vectors are supported.

table

vector or NULL: the values to be matched against. Long vectors are not supported.

See Also

%in%, match

Examples

1
2
1:10 %nin% 5:15
which(1:10 %nin% 5:15)

Paul-James/pjames documentation built on Aug. 9, 2019, 12:18 p.m.