write_out_n: Write out a count

write_out_nR Documentation

Write out a count

Description

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 and n = 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 or use_dual is TRUE. A logical scalar.

Value

A character 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(), prettify_date(), prettify_datetime(), rank_nr()


salim-b/salim documentation built on May 18, 2024, 7:08 a.m.