Description Usage Arguments Value See Also Examples
Unlike setdiff
, it does not remove duplicates in x
and keeps its order.
1 2 3 | keep_if_not_in(x, y)
x %if_not_in% y
|
x |
Source vector. |
y |
Destination vector (of the same mode as x). |
A filtered version of x.
1 2 3 4 5 | keep_if_not_in(1:5, 3:6)
# returns [1 2]
keep_if_not_in(c(4, 3, 4, 3, 1), 3:6)
# returns [1]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.