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 Dec. 26, 2021, 1:19 p.m.