english (version 1.1-1)

as.character.english: Integers into English

Description

Translates integer vectors into character strings representing their expression in the English language.

Usage

"as.character"(x, ...)

Arguments

x
A numeric vector of class english.
...
Currently unused.

Value

A character string vector

Details

Uses a recursive algorithm to translate numbers into their expression in English.

References

See original note by John Fox in the Programmers Niche section of https://cran.r-project.org/doc/Rnews/Rnews_2005-1.pdf.

See Also

english, as.english, print.english.

Examples

Run this code
oneOone <- english(101, UK = FALSE)
as.character(oneOone)
as.character(as.english(oneOone, UK = TRUE))
as.character(oneOone + 1:10)

Run the code above in your browser using DataLab