Write out a count
Usage
write_out_n(
n,
lang = c("en", "de"),
use_singular = FALSE,
use_dual = FALSE,
strip_article = use_dual
)
Arguments
- n
The count to write out in letters. A non-negative integer scalar.
- lang
The language to write out
n
in.- use_singular
Use a definite descriptor for
n = 0
andn = 1
instead of the indistinct number. A logical scalar.- use_dual
Use a definite descriptor for
n = 2
instead of the indistinct number. A logical scalar.- strip_article
Strip the definite article from the definite descriptors. Only relevant if at least one of
use_singular
oruse_dual
isTRUE
. A logical scalar.
See also
gt::vec_fmt_spelled_num()
which spells out integers from 0 to 100 in 80 different locales.
Other spoken language functions:
add_definite_article_de()
,
decline_noun_de()
,
definite_article_de()
,
definite_article_de_declined()
,
n_ify()
,
phrase_datetime()
,
prettify_date()
,
prettify_datetime()
,
rank_nr()