Description Usage Arguments Value Author(s) See Also Examples
Finds all elements in first argument which are not in the second argument. Unlike the base::setdiff
function, if the vectors have repeated elements in common, only the "excess" number of a given element are returned.
1 |
x |
A vector or an object which can be coerced to a vector |
y |
A vector or an object which can be coerced to a vector |
multiple |
Should repeated "multiple" items be returned? Default is |
A vector of all elements in x
which are not in y
. If multiple=FALSE
is set, only unique values are returned.
Carl Witthoft
setdiff
, the CRAN package sets
1 2 3 4 5 6 |
[1] 1 3 3 2 NA
[1] 1
[1] 1
[1] 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.