compare_sets | R Documentation |
Compares two vectors and returns information on their overlap and differences, ignoring ordering and duplicated elements.
compare_sets(x, y, summary = TRUE)
x, y |
Vectors to compare. |
summary |
Logical, controls what information is returned. See 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.