disjoint_sets: Split up two vectors into their intersecting sets

View source: R/utils.R

disjoint_setsR Documentation

Split up two vectors into their intersecting sets

Description

Split up two vectors into their intersecting sets

Usage

disjoint_sets(a, b, names = c("a", "b", "both"))

Arguments

a

first vector

b

second vector

It returns a list of three elements, those that are only in a, those that are in both, and those that are only in b.


nachocab/clickme documentation built on Nov. 11, 2023, 3:14 p.m.