Description Usage Arguments Value Examples
This function is a wrapper for setdiff
. It makes it easier to remember which vector is being subtracted from the other, by displaying an explicit message.
1 | which.of.one.set.is.not.in.another(set_1, set_2, suppress_messages = FALSE)
|
set_1 |
A vector to be subtracted from. |
set_2 |
A vector to subtract from |
suppress_messages |
A logical (TRUE/FALSE) indicator whether to suppress messages. |
A vector of the values of set_1
that are not present in set_2
. Put differently, a vector resulting from subtracting set_2
from set_1
.
1 2 3 4 5 6 7 8 9 | veccompare::which.of.one.set.is.not.in.another(
veccompare::example.vectors.list$vector_a,
veccompare::example.vectors.list$vector_b
)
veccompare::which.of.one.set.is.not.in.another(
veccompare::example.vectors.list$vector_b,
veccompare::example.vectors.list$vector_a
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.