View source: R/modifyHelpers.R
overwrite | R Documentation |
Create function that modifies text elements in a vector
overwrite(...)
... |
Passed to 'gsub()' |
A function that runs 'gsub' to character vectors
myfun <- overwrite("b","d")
myfun(c("a","b","c","abc"))
## regular expressions
myfun2 <- overwrite("b.*","d")
myfun2(c("a","b","c","abc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.