Description Usage Arguments Value References See Also Examples
Replaces numeric represented numbers with words (e.g. 1001 becomes one thousand one).
1 | replace_number(text.var, num.paste = "separate")
|
text.var |
The text variable. |
num.paste |
A character vector of either
|
Returns a vector with abbreviations replaced.
Fox, J. (2005). Programmer's niche: How do you spell that number? R News. Vol. 5(1), pp. 51-55.
bracketX
, qprep
,
replace_abbreviation
,
replace_contraction
,
replace_symbol
1 2 3 4 5 | x <- c("I like 346,457 ice cream cones.", "They are 99 percent good")
y <- c("I like 346457 ice cream cones.", "They are 99 percent good")
replace_number(x)
replace_number(y)
replace_number(x, "combine")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.