%nin% | R Documentation |
Returns a logical vector indicating if there is a non-match or match for its left operand. Inverse action relatively to %in% function
x %nin% y
logical vector of TRUE (non-match) and FALSE (match).
%in%
.
set.seed(42)
a <- c(1,2,15)
b <- 1:10
a %nin% b
!(a %in% b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.