Learn R Programming

omnibus (version 1.2.12)

notIn: Opposite of '%in%'

Description

Indicate if elements of a vector are not in another vector.

Usage

notIn(x, table)

x %notin% table

Value

A logical vector.

Arguments

x, table

Vectors.

Examples

Run this code

x <- c('a', 'v', 'o', 'C', 'a', 'd', 'O')
y <- letters

y %notin% x
x %notin% y

Run the code above in your browser using DataLab