Description Usage Arguments Note See Also Examples
View source: R/replace_ordinal.R
Replaces mixed text/numeric represented ordinal numbers with words (e.g., "1st" becomes "first").
1 | replace_ordinal(text.var, num.paste = TRUE, remove = FALSE)
|
text.var |
The text variable. |
num.paste |
logical. If |
remove |
logical. If |
Currently only implemented for ordinal values 1 through 100
bracketX
,
qprep
,
replace_abbreviation
,
replace_contraction
,
replace_symbol
,
replace_number
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
x <- c(
"I like the 1st one not the 22nd one.",
"For the 100th time stop!"
)
replace_ordinal(x)
replace_ordinal(x, FALSE)
replace_ordinal(x, remove = TRUE)
"I like the 1st 1 not the 22nd 1." %>% replace_ordinal %>% replace_number
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.