grapes-out-grapes: Inverted match

%out%R Documentation

Inverted match

Description

⁠%out%⁠ is an inverted version of the infix %in% operator.

Usage

x %out% table

Arguments

x

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

table

vector or NULL: the values to be matched against.

Details

⁠%out%⁠ is currently defined as "%out%" <- function(x, table) match(x, table, nomatch = 0) == 0

Value

logical; if x is not present in table

Examples

c("A", "B", "3") %out% LETTERS

irworkshop/campfin documentation built on Oct. 19, 2023, 8:02 a.m.