replace_symbol(text.var, dollar = TRUE, percent = TRUE, pound = TRUE, at = TRUE, and = TRUE, with = TRUE)
TRUE
replaces dollar sign ($) with
"dollar"
.TRUE
replaces percent sign (%) with
"percent"
.TRUE
replaces pound sign (#) with
"number"
.TRUE
replaces at sign (@) with "at"
.TRUE
replaces and sign (&) with "and"
.TRUE
replaces with sign (w/) with
"with"
.Returns a character vector with symbols replaced..
This function replaces symbols with word equivalents (e.g., @
becomes
"at"
.
## <strong>Not run</strong>: # x <- c("I am @ Jon's & Jim's w/ Marry", # "I owe $41 for food", # "two is 10% of a #") # replace_symbol(x) # ## <strong>End(Not run)</strong>
bracketX
,
qprep
,
replace_abbreviation
,
replace_contraction
,
replace_number
,