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