Value Matching

Share:

Description

These are a couple of mostly self-explanatory wrappers around %in%.

Usage

1
2
3
4
5
x %nin% y

x %kin% y

x %knin% y

Arguments

x

Vector or NULL: the values to be matched.

y

Vector or NULL: the values to be matched against.

Details

%nin% returns a logical vector indicating if there is no match for its left operand. It is the inverse of x %in% y.

%kin% returns the actual values of x for which x %in% y.

%knin% returns the actual values of x for which x %nin% y.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.