R: Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th)...

ordinal_format {scales} | R Documentation

## Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th) to numbers.

### Description

Ordinal formatter: add ordinal suffixes (-st, -nd, -rd, -th) to numbers.

### Usage

    ordinal_format(x)

    ordinal(x)

### Arguments

`x` | a numeric vector to format

### Value

a function with single paramater x, a numeric vector, that returns a character vector

### Examples

    ordinal_format()(1:10)
    ordinal(1:10)

[Package scales version 0.4.1 Index]