compare_sets: Compare two sets for overlap and differences.

View source: R/compare.R

compare_setsR Documentation

Compare two sets for overlap and differences.

Description

Compares two vectors and returns information on their overlap and differences, ignoring ordering and duplicated elements.

Usage

compare_sets(x, y, summary = TRUE)

Arguments

x, y

Vectors to compare.

summary

Logical, controls what information is returned. See details.

Details

A tibble is returned with contents dependent on the argument summary. If TRUE, counts of elements in both sets and only one set is given. If FALSE, the returned tibble will have a row for each element in the union of x and y, together with which set(s) it belongs to.


jedwards24/edwards documentation built on Sept. 2, 2023, 8:16 a.m.