replace_with_nothing | R Documentation |
Cleans some patterns in a text by removing them.
replace_with_nothing(text, patterns_to_nothing)
text |
the character vector to clean. |
patterns_to_nothing |
the patterns to replace (either passed as a table with column "from" or passed as a vector) |
the same text with patterns replaced by nothing
replace_with_nothing(c("This is an examplexxx of unclean texxxxt brrr.",
"brrrxxxx And anotherxxx one.",
"Yet anothxxxer."),
c("xxx","brrr"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.