notin | R Documentation |
Flags the elements of x that are not in y.
x %notin% y
x |
(Vector) The values to be matched. Long vectors (2^31 elements) are supported. |
y |
(Vector) The values to be matched against. Long vectors are not supported. |
A logical vector of the same length as x
, with TRUE
if the element was
found in y
, and FALSE
if it was not.
R Core Team (https://www.r-project.org/contributors.html)
Desi Quintans (http://www.desiquintans.com)
c(1, 4, 21, 7, -3) %in% 0:10
#> [1] TRUE TRUE FALSE TRUE FALSE
c(1, 4, 21, 7, -3) %notin% 0:10
#> [1] FALSE FALSE TRUE FALSE TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.