| %gin% | R Documentation |
%in% for partial string matching%gin% is a reimagination of %in% using grepl() for partial string matching.
pattern %gin% x
pattern |
Character string to be matched. |
x |
|
%gin% was first written for @ivelasq's r-data-recipes GitHub repository.
# %in% evaluates to FALSE because it looks for full string matches
"t" %in% "tonic"
# %gin% evaluates to TRUE
"t" %gin% "tonic"
# %gin% can be used with tab()
tab("Toyota" %gin% rownames(mtcars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.