replace_symbol: Replace Symbols With Word Equivalents

Description Usage Arguments Value See Also Examples

View source: R/replace_symbol.R

Description

This function replaces symbols with word equivalents (e.g., @ becomes "at".

Usage

1
2
3
4
5
6
7
8
9
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 TRUE replaces dollar sign ($) with "dollar".

percent

logical. If TRUE replaces percent sign (%) with "percent".

pound

logical. If TRUE replaces pound sign (#) with "number".

at

logical. If TRUE replaces at sign (@) with "at".

and

logical. If TRUE replaces and sign (&) with "and".

with

logical. If TRUE replaces with sign (w/) with "with".

Value

Returns a character vector with symbols replaced..

See Also

bracketX, qprep, replace_abbreviation, replace_contraction, replace_number,

Examples

1
2
3
4
5
6
7
## 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)

trinker/qdap documentation built on Sept. 30, 2020, 6:28 p.m.