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 19, 2017, 11:08 a.m.

Search within the Kmisc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.