Description Usage Arguments Value See Also Examples
A wrapper for gsub
for replacing substrings that is
useful for ggplot2 scales. Useful for taking field names like
'Cool_Variable' and turning it into 'Cool Variable'.
1 2 3 | f_replace(x, pattern = "_", replacement = " ", ...)
ff_replace(...)
|
x |
A vector of text strings. |
pattern |
A character string defining search patterns. |
replacement |
A character string defining replacement patterns. |
... |
Other arguments passed to |
Returns a string vector with characters replaced.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.