set_diff: Compare the set of differences between two vectors

Description Usage Arguments Value Examples

View source: R/set_diff.R

Description

Compare the set of differences between two vectors

Usage

1
set_diff(x, y)

Arguments

x

a vector

y

a vector

Value

a list of length 3 containing (X_not_in_Y, Y_not_in_X and in_X_and_y)

Examples

1
2
3
4
5
a = c("A", "B", "C")

b = c("C", "D", "E")

set_diff(a, b)

DanielGardiner/EpiFunc documentation built on July 25, 2019, 10:53 p.m.