View source: R/f - Paste regex.R
f_paste_regex | R Documentation |
Concatenate regex items in vector separated by "|".
f_paste_regex(
v.string,
c.pre = "^",
c.collapse = "|",
c.post = "$",
b.sort = TRUE
)
v.string |
Vector with items. |
c.pre |
String to pre-pend (default: "^"). |
c.collapse |
String to collapse items (default: "|"). |
c.post |
String to append (default: "$"). |
b.sort |
Should items be sorted? (default: TRUE). |
-
.
Pieter Overdevest
c.string <- f_paste_regex(
v.string = c("pieter", "bart", "theo", "kees", "aad"),
c.pre = "^",
c.collapse = "|",
c.post = "$",
b.sort = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.