View source: R/server-std_names.R
str_remove_ordinal | R Documentation |
Removes mixed text/numeric ordinal numbers (i.e. "1st", "2nd", "23rd"). This function was inspired by the 'replace_ordinal()' function in the textclean package, and re-uses pieces of its code.
str_remove_ordinal(string)
string |
A character vector |
num_paste |
A logical. If 'TRUE', the elements of larger numbers are separated with spaces. If 'FALSE', the elements will be joined without spaces. |
A |
logical. If 'TRUE', ordinal numbers are removed from 'string' |
... |
Ignored. |
Currently only implemented for ordinal values 1 through 100.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.