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 at http://tolstoy.newcastle.edu.au/R/help/05/04/2715.html.

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)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.