not_in: Checks if an item is part of the related list

Description Usage Arguments Value See Also Examples

View source: R/not_in.R

Description

The not_in function returns the logical inverse of the in operator from "in" pairs well with 'magrittr' (i.e., '

"in" is currently defined as

function(x, table) match(x, table, nomatch = 0) > 0

Usage

1
not_in(x, y)

Arguments

x

vector or NULL: the values to be matched. Long vectors are supported

y

vector or NULL: the values to be matched against. Long vectors are not supported.

Value

The the logical inverse of x

See Also

match which this function wraps

Examples

1
2
  not_in("c", c("c", "a", "t", "s")) # is false
  not_in("c", c("d", "o", "g", "s")) # is true

bcbeidel/notin documentation built on Nov. 3, 2019, 2:08 p.m.