like: Value Matching

Description Usage Arguments Value Examples

Description

Opposite of %in%. %notin% returns TRUE if there is no match between .x and .table.

Usage

1
2
3
4
5
6
7
.x %notin% .y

.x %unlike% .y

.x %xlike% .y

.x %setdiff% .y

Arguments

.x

Vector. Values to be matched.

.y

Vector. Values to be matched against.

Value

A logical vector of the same length as .x.

Examples

1
2
3
4
5
6
7
8
1 %in% 1:3
1 %notin% 1:3
"a" %notin% c("b", "c")
library(data.table)
names(iris) %like% "Length"
names(iris) %xlike% "Length"
names(iris) %unlike% "Length"
names(iris) %setdiff% c("Species", "x")

markusdumke/fluid documentation built on Sept. 24, 2019, 11 p.m.