spell_out: Spell out an integer

View source: R/spell_out.R

spell_outR Documentation

Spell out an integer

Description

Spell out an integer as a word, for use in reports/papers.

Usage

spell_out(number, capitalize = FALSE, max_value = 9)

Arguments

number

A number that is to be spelled out (can be a vector).

capitalize

If TRUE, capitalize the first letter.

max_value

Maximum value to use (generally 9); if larger than this, use numerals.

Value

Character string (or vector of character strings) with numbers spelled out, or as numerals if large.

Examples

spell_out(9)
spell_out(9, cap=TRUE)
spell_out(9, max_value=5)

broman documentation built on May 29, 2024, 7:18 a.m.

Related to spell_out in broman...