Express Numbers in Words
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.
words(x) Words(x)
x |
A numeric vector, usually integer |
A character string vector with the numbers expressed in English words.
cat("The Duke of York had ", words(10006), " men.\n", sep = "") cat("How many did he have? ", Words(10006), ".\n", sep = "")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.