Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

cat("The Duke of York had ", words(10006), " men.\n", sep = "")
cat("How many did he have? ", Words(10006), ".\n", sep = "")

english

Translate Integers into English

v1.2-5
GPL-2
Authors
John Fox, Bill Venables, Anthony Damico and Anne Pier Salverda
Initial release
2020-01-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.