value_matching: Value Matching

Description Usage Arguments Details

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.


Kmisc documentation built on May 29, 2017, 1:43 p.m.

Related to value_matching in Kmisc...