vec_to_regex | R Documentation |
Often helpful when constructing a regular expression based on a vector of values
vec_to_regex(..., sep = "|", wrap = c("(", ")"))
... |
Vectors to collapse into the regex. Duplicated elements are removed. |
sep |
Character used to separate elements of ... |
wrap |
2-element vector of strings to wrap elements of ... in. |
vec_to_regex(month.abb)
vec_to_regex(letters[1:5], sep = "", wrap = c("[", "]+"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.