hyphenateWords: Function to convert numbers to hyphenated (English) words,...

Description Usage Arguments Value History/development log Author(s) See Also Examples

View source: R/hyphenateWords.R

Description

Function to convert numbers to hyphenated (English) words, e.g. 87 to "eighty-seven"

Usage

1
hyphenateWords(x, capitalise = FALSE)

Arguments

x

numeric

capitalise

logical

Value

character

History/development log

Started before 5.iv.21

Author(s)

Chris Evans

See Also

convertVector2sentence for another utility function for text, converts vectors to comma (or other symbol), separated clauses, e.g. 1:3 to "1, 2 and 3".

Other text utilities: convertVector2sentence()

Examples

1
2
hyphenateWords(87)
hyphenateWords(87, capitalise = TRUE)

cpsyctc/CECPfuns documentation built on April 15, 2021, 3:26 a.m.