%notin% | R Documentation |
%notin%
is the negation of %in%
,
which returns a logical vector indicating if there is a non-match or not
for its left operand.
x %notin% table
x |
vector or |
table |
vector or |
A logical vector, indicating if a non-match was located for each element of
x
: thus the values are TRUE
or FALSE
and never NA
.
Peter Solymos <solymos@ualberta.ca>
All the opposite of what is written for %in%
.
1:10 %notin% c(1,3,5,9)
sstr <- c("c","ab","B","bba","c",NA,"@","bla","a","Ba","%")
sstr[sstr %notin% c(letters, LETTERS)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.