View source: R/btools_utilities.r
setdiff_all | R Documentation |
which elements are not in the intersection of two vectors?
setdiff_all(v1, v2)
v1 |
vector |
v2 |
vector of the same type as v1 |
a vector of items that are not in the intersection of two sets
v1 <- c(1, 3, 4, 5, 6, 7)
v2 <- c(2, 4, 6, 8, 10)
setdiff_all(v1, v2)
# compare to setdiff
setdiff(v1, v2)
setdiff(v2, v1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.