cardinal()
gains the argument max_n
, which stops numbers greater that max_n
from being cardinalized. This is useful when you want to print small numbers in words but larger numbers numerically. Refactorization means this argument can be used by all functions.
options("nombre.max_n")
sets a default value.adverbial()
and nom_adv()
generate adverbials, e.g. “once”, “twice”, “three times”.
thrice = TRUE
or options("nombre.thrice" = TRUE)
convert 3
to “thrice” instead of “three times”....
to lower level functions. ordinal()
and adverbial()
pass to cardinal()
. denominator()
passes to ordinal()
. This allows cardinal()
’s max_n
and negative
to be used by all functions and ordinal()
’s cardinal
to be used by denominator()
.ordinal()
now handles uncardinalized numeric vectors with different numbers of digits correctly. Previously, dashes would be appended to the start of the shorter numbers. nom_ord(c(9, 10), cardinal = FALSE)
now produces “9th, 10th” as expected, instead of “-9th, 10th” as it did previously.Implemented a custom function to convert decimals to fractions. This removes the previous previous dependency on {MASS}.
Added package documentation page at ?nombre