notin | R Documentation |
Check whether an object is absent from a table, i.e., the logical inverse of in
. See examples on how missing values are being handled.
x %notin% table
x |
Vector or |
table |
Vector or |
Logical vector, TRUE
for each element of x
absent from table
, and FALSE
for each element of x
present in table
.
match
, chmatch
11 %notin% 1:10 # TRUE
"a" %notin% c("a", "b") # FALSE
## NAs on the LHS
NA %in% 1:2
NA %notin% 1:2
## NAs on the RHS
NA %in% c(1:2,NA)
NA %notin% c(1:2,NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.