nin: Not in (Find Matching or Non-Matching Elements)

Description Usage Arguments Examples

Description

" 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.

Usage

1
x %nin% table

Arguments

x

A vector of numeric, character, or factor values.

table

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

Examples

1
c('a','b','c') %nin% c('a','b')

SciencesPo documentation built on May 19, 2017, 8:16 p.m.

Search within the SciencesPo package
Search all R packages, documentation and source code