as.character.english: Integers into English

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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

Usage

1
2
## S3 method for class 'english'
as.character(x, ...)

Arguments

x

A numeric vector of class english.

...

Currently unused.

Details

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

Value

A character string vector

Author(s)

John Fox, with minor extensions by Bill Venables.

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

1
2
3
4
oneOone <- english(101, UK = FALSE)
as.character(oneOone)
as.character(as.english(oneOone, UK = TRUE))
as.character(oneOone + 1:10)

english documentation built on May 30, 2017, 2:53 a.m.

Search within the english package
Search all R packages, documentation and source code