ordinal_format: Superseded interface to 'label_ordinal()'

ordinal_formatR Documentation

Superseded interface to label_ordinal()

Description

[Superseded]

These functions are kept for backward compatibility; you should switch to label_ordinal() for new code.

Usage

ordinal_format(
  prefix = "",
  suffix = "",
  big.mark = " ",
  rules = ordinal_english(),
  ...
)

ordinal(
  x,
  prefix = "",
  suffix = "",
  big.mark = " ",
  rules = ordinal_english(),
  ...
)

Arguments

prefix, suffix

Symbols to display before and after value.

big.mark

Character used between every 3 digits to separate thousands.

rules

Named list of regular expressions, matched in order. Name gives suffix, and value specifies which numbers to match.

...

Other arguments passed on to base::format().


scales documentation built on July 4, 2024, 1:11 a.m.