print.word: Print a number as an english word

Description Usage Arguments Details Value Examples

View source: R/print.word.R

Description

print.word a character string of a number

Usage

1
2
## S3 method for class 'word'
print(number, case)

Arguments

number

any numeric value

case

either "upper" or "lower." Defaults to "upper."

Details

This function is a wrapper for either the words() or Words() function from the english package. It defaults to upper case, but lower case can be set using case = lower. print.word() also adds a hyphen between words.

Value

A character string

Examples

1
2
print.word(42)
print.word(42, case = "lower")

jdjohn215/MLSPTools documentation built on Sept. 2, 2020, 1:16 a.m.