ordinal_format {scales}R 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

Symbols to display before and after value.

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().


[Package scales version 1.2.0 Index]