replace_symbol {textclean} | R Documentation |
Replace Symbols With Word Equivalents
Description
This function replaces symbols with word equivalents (e.g., @
becomes
"at"
.
Usage
replace_symbol(x, dollar = TRUE, percent = TRUE, pound = TRUE,
at = TRUE, and = TRUE, with = TRUE, ...)
Arguments
x |
A character vector. |
dollar |
logical. If |
percent |
logical. If |
pound |
logical. If |
at |
logical. If |
and |
logical. If |
with |
logical. If |
... |
ignored. |
Value
Returns a character vector with symbols replaced..
Examples
x <- c("I am @ Jon's & Jim's w/ Marry",
"I owe $41 for food",
"two is 10% of a #"
)
replace_symbol(x)
[Package textclean version 0.9.3 Index]