str_remove_ordinal: Remove Mixed Ordinal Numbers with Text Representation

Description Usage Arguments Details

View source: R/sched_std_names.R

Description

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.

Usage

1

Arguments

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.

Details

Currently only implemented for ordinal values 1 through 100.


jesse-smith/covidassign documentation built on Aug. 23, 2021, 12:59 a.m.