%nin%

0th

Percentile

Find Matching (or Non-Matching) Elements

%nin% is a binary operator, which returns a logical vector indicating if there is a match or not for its left operand. A true vector element indicates no match in left operand, false indicates a match.

Keywords
manip, character
Usage
x %nin% table
Arguments
x

a vector (numeric, character, factor)

table

a vector (numeric, character, factor), matching the mode of x

Value

vector of logical values with length equal to length of x.

See Also

match %in%

Aliases
  • %nin%
Examples
# NOT RUN {
c('a','b','c') %nin% c('a','b')
# }
Documentation reproduced from package Hmisc, version 4.3-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.