%nin% | R Documentation |
%nin%
is a binary operator, which returns a logical vector indicating
if there is a match or not for its left operand. A true vector element
indicates no match in left operand, false indicates a match.
x %nin% table
x |
a vector (numeric, character, factor) |
table |
a vector (numeric, character, factor), matching the mode of |
vector of logical values with length equal to length of x
.
Frank E Harrell Jr <f.harrell@vanderbilt.edu>
match
, %in%
c('a','b','c') %nin% c('a','b')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.