number_to_position: Converts an integer number to its "verbal position". 1 ->...

View source: R/number_to_position.R

number_to_positionR Documentation

Converts an integer number to its "verbal position". 1 –> "1st", 2 –> "2nd", 3 –> "3rd", 4 –> "4th", ...

Description

Converts an integer number to its "verbal position". 1 –> "1st", 2 –> "2nd", 3 –> "3rd", 4 –> "4th", ...

Usage

number_to_position(x)

Arguments

x

A number.

Value

Returns the input number as string with a new suffix depending on the numbers position in the numbers bar.

Examples

{

}

DIZtools documentation built on Sept. 18, 2023, 9:07 a.m.