%ni% | R Documentation |
NOTIN operator.
x %ni% table
x |
vector or |
table |
vector or |
Determine whether values in one vector are not in another vector.
Vector of TRUE
and FALSE
, indicating whether values in
one vector are not in another vector.
https://www.r-bloggers.com/2018/07/the-notin-operator/ https://stackoverflow.com/questions/71309487/r-package-documentation-undocumented-arguments-in-documentation-object-for-a?noredirect=1
# Prepare Data
v1 <- c("Sally","Tom","Barry","Alice")
listToCheckAgainst <- c("Tom","Alice")
v1 %ni% listToCheckAgainst
v1[v1 %ni% listToCheckAgainst]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.