View source: R/tr_compare_lists.R
tr_compare_lists | R Documentation |
Performs intersect(x, y)
, setdiff(x, y)
, and
setdiff(y, x)
. Returns these elements in a list with names "common",
"unique_x", and "unique_y".
tr_compare_lists(x, y, names = NULL)
x |
First vector to compare. |
y |
Second vector to compare. |
names |
Optional character vector, containing names of |
A named list of the common and unique elements of x and y.
None.
https://www.github.com/travis-m-blimkie/tRavis
tr_compare_lists(
x = c(1, 2, 4, 5, 6),
y = c(2, 3, 6, 7),
names = c("A", "B")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.