View source: R/btools_strings.r
str_detect_any | R Documentation |
Detect whether any vector elements are in a string
str_detect_any(s, elements)
s |
A string. |
elements |
Vector elements to look for. |
Logical indicating whether any of elements
are found in s
.
str_detect_any("abc defg ijk", c("123", "def", "11")) str_detect_any("abc defg ijk", c("123", "xyz", "11"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.