words {english} | R Documentation |
Express Numbers in Words
Description
Convert numerical objects to Enghish character strings.
A convenience function for use mainly with RMarkdown
in-text inserts. The capitalized version, Words
,
makes the initial letter of the result upper case.
Usage
words(x)
Words(x)
Arguments
x |
A numeric vector, usually integer |
Value
A character string vector with the numbers expressed in English words.
Examples
cat("The Duke of York had ", words(10006), " men.\n", sep = "")
cat("How many did he have? ", Words(10006), ".\n", sep = "")
[Package english version 1.2-6 Index]