rev_setdiff: Reverse set difference

Description Usage Arguments Details Value See Also Examples

View source: R/rev_setdiff.R

Description

Same as setdiff with argument order reversed.

Usage

1

Arguments

x, y

vectors.

Details

This is a convenience function useful when x or y is long/cumbersome to type.

Value

The output of setdiff(y, x).

See Also

setdiff.

Examples

1
2
3
4
5
6
x <- LETTERS[1:10]
y <- LETTERS[5:14]

setdiff(x, y)
rev_setdiff(y, x)
rev_setdiff(x, y)

coletl/coler documentation built on May 12, 2021, 9:44 p.m.