Learn R Programming

ifultools (version 2.0-26)

ordinal: Ordinal value conversion

Description

Converts a given number to the nearest ordinal value.

Usage

ordinal(x)

Value

a character string denoting the nearest ordinal value.

Arguments

x

a numeric scalar.

See Also

properCase.

Examples

Run this code
ordinal(1)
ordinal(2)
ordinal(3)
ordinal(pi)
ordinal(123)
ordinal(124)
ordinal(1000)

Run the code above in your browser using DataLab