setdiff_all: which elements are not in the intersection of two vectors?

View source: R/btools_utilities.r

setdiff_allR Documentation

which elements are not in the intersection of two vectors?

Description

which elements are not in the intersection of two vectors?

Usage

setdiff_all(v1, v2)

Arguments

v1

vector

v2

vector of the same type as v1

Value

a vector of items that are not in the intersection of two sets

Examples

v1 <- c(1, 3, 4, 5, 6, 7)
v2 <- c(2, 4, 6, 8, 10)
setdiff_all(v1, v2)
# compare to setdiff
setdiff(v1, v2)
setdiff(v2, v1)

donboyd5/btools documentation built on Jan. 7, 2023, 10:47 p.m.