Description Usage Arguments Details Value Examples
%=% is made for subsetting dataframes. Matching is case-insensitive
and vectorized over string.
1 | string %=% pattern
|
string |
A character vector. |
pattern |
A regular expression. |
This is almost identical to %like% but it ignores
case by default. We could use base::grepl() or stringr::str_detect(), but
we do a lot of subsetting, and %=% is as many as 30 characters
shorter when ignoring case, while maintaining readability.
A logical vector.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.