Description Usage Arguments Details Examples
View source: R/setdiff_symmetric.R
performs symmetric set difference
1 | setdiff_symmetric(x, y)
|
x, y |
objects to be compared |
The setdiff function from the base package performs assymetric difference of its arguments and returns the members of x missing in y. This function performs a symmetric difference instead, where both members of x missing in y and members of y missing in x will be returned.
If dplyr is present, data.frames can also be used as input.
1 | setdiff_symmetric(1:10, 5:15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.