nin: Negative Match

Description Usage Arguments Value Examples

Description

%nin% is a convenience operator: x %nin% table is equivalent to !(x %in% table).

Usage

1
  x %nin% table

Arguments

x

the values to be matched

table

a values to be match against

Value

A logical vector

Examples

1
2
3
x <- sample(1:6,12,replace=TRUE)
x %in% 1:3
x %nin% 1:3

mutils documentation built on May 2, 2019, 4:44 p.m.

Related to nin in mutils...