setsummary: Characterize memberships in two sets

Description Usage Arguments Value

View source: R/data.R

Description

Characterize memberships in two sets

Usage

1
setsummary(a, b, unique.force = TRUE)

Arguments

a

vector (character, numeric, etc.) with members of set a

b

vector with members of set b

unique.force

logical, set TRUE to enforce that a, b have non-repeating elements (i.e. they are sets), set FALSE to use a,b as-is, i.e. potentially with non-unique elements.

Value

list holding three vectors and a summary. Vectors contain the set elements that are private and common in a, b, and a vector with membership counts. Warning, membership counts might not be reliable if a, b have duplicate entries


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.