Description Usage Arguments Value Examples
Searches for specified pattern in provided character string. Return pasted provided character string(s) if found or provided default character string if not.
1 | utils_paste_if_found(regex_filter, string_filter, default, ignore_case, ...)
|
regex_filter |
Pattern to look for provided as a character string regex. |
string_filter |
Character string vector to search into for the pattern
provided in |
default |
Character string returned if pattern provided in |
ignore_case |
Boolean specifying whether case should be ignored ( |
... |
Character string(s) to be paste together using a space as separator
and returned if pattern provided in |
A character string vector.
1 2 3 4 5 6 7 | ## Not run:
utils_paste_if_found(
"^glasgow", c("glasgow-entrepreneurs", "aberdeen-entrepreneurs"),
"pattern not found", TRUE, "pattern", "found"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.