View source: R/helper_functions.R
fast_replace | R Documentation |
Fast escape function for limited case where only one pattern provided actually matches anything
fast_replace(string, pattern, replacement, ...)
string |
a character vector where replacements are sought |
pattern |
Character string to be matched in the given character vector |
replacement |
Character string equal in length to pattern or of length one which are a replacement for matched pattern. |
... |
arguments to pass to gsub |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.