symdiff | R Documentation |
Quasi symmetric difference of any number of vectors.
symdiff(x, y, z = NULL)
x |
A vector. |
y |
A vector. |
z |
A vector. |
A list of vectors, each of which contains the elements that are only present in that vector and not in any of the other vectors.
x <- c(1, 2, 3, 4, 5)
y <- c(2, 4, 6, 8, 10)
z <- c(3, 5, 7, 9, 11)
symdiff(x, y, z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.