Description Usage Details Value
This is a convenience wrapper around 'stringr::str_detect'.
1 | string %like% pattern
|
Inspired by 'data.table::like', which uses 'base::grepl' instead. Because this function uses 'stringr::str_detect' the second argument (the pattern) can also be a vector.
See the help page for [stringr::str_detect()] for more details.
A logical vector indicating whether each element had a match.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.