| %nin% | R Documentation |
%in% returns logical vector indicating values that do not have a match.
%win% returns a vector of the values that have a match.
%wnin% returns a vector of the values that do not have a match.
x %nin% table
x %win% table
x %wnin% table
x |
Vector of values to be matched. |
table |
Vector of values to be matched against. |
%nin% returns a logical vector of the same length of x, indicating which values are not in table.
%win% returns a sub-vector of x with the values that were found in table.
%wnin% returns a sub-vector of x with the values that were not found in table.
base::match()
vals <- c("a", "xa", "b")
vals %nin% letters
vals %win% letters
vals %wnin% letters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.