grapes-not_in-grapes: Opposite of %in%

Description Usage Arguments Value Examples

Description

Given vectors A and B, returns only the entities from vector A that don't occur in vector B.

Usage

1
x %not_in% table

Arguments

x

The vector you want to check.

table

Table in which to do lookups against x.

Value

Same form of return as %in% — except it will return only elements on the lhs that aren't present on the rhs

Examples

1
c(1, 2, 3, 4, 5) %not_in% c(4, 5, 6, 7, 8)

upstartr documentation built on Feb. 23, 2021, 9:06 a.m.