Learn R Programming

tfse (version 0.5.0)

nin: Return lhs values not in rhs values

Description

Return lhs values not in rhs values

Usage

nin(lhs, rhs, value = TRUE)

yin(lhs, rhs, value = TRUE)

Arguments

lhs

Values to check whether they are/not contained in the other

rhs

Values to use as the reference

value

Logical indicating whether to return the value or a logical vector

Examples

Run this code
# NOT RUN {
## a, b, zz in alphabet letters
yin(c("a", "b", "zz"), letters)

## a, b, zz NOT in alphabet letters
nin(c("a", "b", "zz"), letters)

# }

Run the code above in your browser using DataLab