Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ordinal

Ordinal Numbers


Description

Generates character strings of the ordinal version of numbers in English words.

Usage

ordinal(x, ...)

## S3 method for class 'english'
ordinal(x, ...)

## S3 method for class 'numeric'
ordinal(x, ...)

## S3 method for class 'character'
ordinal(x, ...)

## S3 method for class 'ordinal'
print(x, ...)

Arguments

x

A numeric vector, usually integer, or an object of class "ordinal"

...

Ignored. Included only for compatibility.

Value

A character string vector of ordinal versions of the number, with S3 class "ordinal"

Examples

ordinal(1:12)

english

Translate Integers into English

v1.2-5
GPL-2
Authors
John Fox, Bill Venables, Anthony Damico and Anne Pier Salverda
Initial release
2020-01-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.