replace_with | R Documentation |
Cleans some patterns in a text by replacing them.
replace_with(text, patterns_to_strings = NULL, from = NULL, to = NULL)
text |
the character vector to clean. |
from |
the patterns to replace (passed as a vector) |
to |
the patterns to replace (passed as a vector) |
patterns_to_nothing |
the patterns to replace and string replacements (passed as a table with columns "from" and "to") |
the same text with patterns replaced by strings
replace_with(c("This is an apple and this is a banana.",
"Here is a banana and an apple"),
from=c("apple","banana"),
to=c("orange","kiwi"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.