%ni% {petersenlab} | R Documentation |
NOTIN Operator.
Description
NOTIN operator.
Usage
x %ni% table
Arguments
x |
vector or |
table |
vector or |
Details
Determine whether values in one vector are not in another vector.
Value
Vector of TRUE
and FALSE
, indicating whether values in
one vector are not in another vector.
See Also
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
Examples
# Prepare Data
v1 <- c("Sally","Tom","Barry","Alice")
listToCheckAgainst <- c("Tom","Alice")
v1 %ni% listToCheckAgainst
v1[v1 %ni% listToCheckAgainst]
[Package petersenlab version 1.0.0 Index]