Description Usage Arguments Value Examples
View source: R/replace_symbol.R
This function replaces symbols with word equivalents (e.g., @
becomes
"at"
.
1 2 |
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..
1 2 3 4 5 | x <- c("I am @ Jon's & Jim's w/ Marry",
"I owe $41 for food",
"two is 10% of a #"
)
replace_symbol(x)
|
[1] "I am at Jon's and Jim's with Marry"
[2] "I owe dollar 41 for food"
[3] "two is 10 percent of a number "
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.