%contains% | R Documentation |
Just a simple shorthand so that inexperienced R users don't have
to use somewhat complex functions such as grepl()
and stringr::str_detect()
with non-default arguments (e.g. fixed params).
haystack %contains% needle
haystack |
string in which you search |
needle |
string to search for |
"1, 2, 3, 4, you" %contains% "you"
"1, 2, 3, 4, you" %contains% 1 # unlike str_detect casts all needles as characters
"1, 2, 3, 4, you" %contains% 343
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.