numbers2words: numbers2words

View source: R/common.R

numbers2wordsR Documentation

numbers2words

Description

Converts a number into its corresponding words in English THIS FUNCTION WAS PUBLISHED IN: R-News, vol 5, iss 1, May 2005, pp. 51 Original author: John Fox, Department of Sociology, McMaster University, Hamilton, Ontari Canada L8S 4M4, 905-525-9140x23604 http://socserv.mcmaster.ca/jfox http://cran.csiro.au/doc/Rnews/Rnews_2005-1.pdf http://finzi.psych.upenn.edu/R/Rhelp02a/archive/46843.html

Usage

numbers2words(
  x,
  billion = c("US", "UK"),
  and = if (billion == "US") "" else "and"
)

Arguments

x

number

billion

follow either US or UK usage rules

and

follows the choice set in billion arg

Value

string


chepec/R-common documentation built on July 27, 2023, 11:33 a.m.