numbers2words_th: Convert number to text string.

View source: R/NMFSReports.R

numbers2words_thR Documentation

Convert number to text string.

Description

Convert number to text string to the 'st, 'nd, 'rd, or 'th.

Usage

numbers2words_th(x, type = "word")

Arguments

x

The numbers that need to be converted to string.

type

How the numbers should be converted. Default = "word" (which produces "fifty-third"), but you can also select "val_th" (which produces "53rd").

Examples

numbers2words_th(x = 3, type = "val_th")
numbers2words_th(x = 3, type = "word")

EmilyMarkowitz-NOAA/NMFSReports documentation built on March 26, 2023, 1:08 a.m.