%ein% | R Documentation |
A common blunder in R programming is to mistype one of a set of filters without realizing. This function will error if any member of the values to be matched against is not present.
lhs %ein% rhs lhs %enotin% rhs
lhs |
Values to be matched |
rhs |
Values to be matched against. |
Same as %in%
and %notin%
, unless an element of rhs
is not present in lhs
, in which case, an error.
# Incorrectly assumed to include two Species iris[iris$Species %in% c("setosa", "versicolour"), ] ## Not run: # Error: iris[iris$Species %ein% c("setosa", "versicolour"), ] ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.