Skip to contents

See base:: for details. %nin% is a binary operator, returning a logical vector indicating if there is a negative match or not.

Usage

lhs %in% rhs

Arguments

lhs

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

rhs

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

Value

A logical vector indicating which value of lhs are not matched in rhs

See also

Other Utility functions: capwords(), named_group_split(), rm_inf_na(), subset_fns_Zr(), subset_fns_yi()

Examples

"A" %nin% LETTERS[1:10]
#> [1] FALSE
"A" %in% LETTERS[1:10]
#> [1] TRUE