ordinalIndicator: Get the ordinal indicator for an integer

Description Usage Arguments Value

View source: R/autoHelpers.R

Description

Get the ordinal indicator for an integer

Usage

1

Arguments

x

An integer

Value

A character string giving the ordinal indicator for x: 'st' if the last digit of x is 1, 'nd' if it is 2, 'rd' if it is 3, 'th' otherwise.


harrysouthworth/margarita documentation built on Aug. 19, 2021, 5 a.m.