number_to_position {DIZtools} | R 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
{
}
[Package DIZtools version 1.0.1 Index]