Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nin

Negative Match


Description

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

Usage

x %nin% table

Arguments

x

the values to be matched

table

a values to be match against

Value

A logical vector

Examples

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

memisc

Management of Survey Data and Presentation of Analysis Results

v0.99.27.3
GPL-2
Authors
Martin Elff (with contributions from Christopher N. Lawrence, Dave Atkins, Jason W. Morgan, Achim Zeileis)
Initial release
2020-11-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.