grapes-nin-grapes: 'not in' operator

%nin%R Documentation

'not in' operator

Description

This negates the '%in%' operator.

Usage

x %nin% table

Arguments

x

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

table

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

Value

a boolean vector

Author(s)

Jakob Gepp

See Also

match

Examples

c(1,2,3,4) %nin% c(1,2,5)
# [1] FALSE FALSE  TRUE  TRUE


STATWORX/helfRlein documentation built on Feb. 12, 2024, 2:21 a.m.