| replace_symbol {qdap} | R Documentation |
Replace Symbols With Word Equivalents
Description
This function replaces symbols with word equivalents (e.g., @ becomes
"at".
Usage
replace_symbol(
text.var,
dollar = TRUE,
percent = TRUE,
pound = TRUE,
at = TRUE,
and = TRUE,
with = TRUE
)
Arguments
text.var |
The text variable. |
dollar |
logical. If |
percent |
logical. If |
pound |
logical. If |
at |
logical. If |
and |
logical. If |
with |
logical. If |
Value
Returns a character vector with symbols replaced..
See Also
bracketX,
qprep,
replace_abbreviation,
replace_contraction,
replace_number,
Examples
## Not run:
x <- c("I am @ Jon's & Jim's w/ Marry",
"I owe $41 for food",
"two is 10% of a #")
replace_symbol(x)
## End(Not run)
[Package qdap version 2.4.6 Index]