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

View source: R/hyphenateWords.R

hyphenateWordsR Documentation

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

Description

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

Usage

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

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

cpsyctc/CECPfuns documentation built on April 2, 2024, 2:03 a.m.