%nin% | R Documentation |
Negation of the built-in %in% operator. %nin% is a short-hand for !( a %in% b ).
a %nin% b
a |
Any R object for which the binary operator %in% is defined. This would include many built-in R primitives. |
b |
Any R object for which the binary operator %in% is defined. This would include many built-in R primitives. |
%in%
# 4 is not an element in {5,6,7}. 4 %nin% 5:7 # Evaluates to TRUE # 4 is an element in {4,5,6,7}. 4 %nin% 4:7 # Evaluates to FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.