english (version 1.2-3)

words: 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

Run this code
# NOT RUN {
cat("The Duke of York had ", words(10006), " men.\n", sep = "")
cat("How many did he have? ", Words(10006), ".\n", sep = "")
# }

Run the code above in your browser using DataLab