| as.character.english {english} | R Documentation |
Translates integer vectors into character strings representing their expression in the English language.
## S3 method for class 'english' as.character(x, ...)
x |
A numeric vector of class |
... |
Currently unused. |
Uses a recursive algorithm to translate numbers into their expression in English.
A character string vector
John Fox, with minor extensions by Bill Venables.
See original note by John Fox in the Programmers Niche section of https://cran.r-project.org/doc/Rnews/Rnews_2005-1.pdf.
english, as.english,
print.english.
oneOone <- english(101, UK = FALSE) as.character(oneOone) as.character(as.english(oneOone, UK = TRUE)) as.character(oneOone + 1:10)