tidy_sub | R Documentation |
Utility function to make sub() work better with pipes
tidy_sub(x, pattern, replacement, fixed = TRUE, ...)
x |
a character vector where matches are sought |
pattern |
character string containing a regular expression (or character string for fixed = TRUE) to be matched in the given character vector. |
replacement |
a replacement for matched pattern in sub and gsub. |
fixed |
logical. If TRUE, pattern is a string to be matched as is. |
... |
additional parameters passed to sub |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.