Convert numbers to adverbial character vectors (once, twice, three times)

adverbial(x, thrice = get_config("nombre::thrice", FALSE), ...)

nom_adv(x, thrice = get_config("nombre::thrice", FALSE), ...)

nom_times(x, thrice = get_config("nombre::thrice", FALSE), ...)

Arguments

x

A numeric vector

thrice

A logical of length one. If TRUE, the adverbial of 3 will be "thrice". If FALSE, the adverbial of 3 will be "three times". Defaults to FALSE. Default can be changed with set_config("nombre::thrice").

...

Additional arguments passed to cardinal()

Value

A character vector of the same length as x

See also

Other number names: cardinal(), collective(), denominator(), numerator(), ordinal()

Examples

nom_adv(1:4)
#> [1] "once" "twice" "three times" "four times"
nom_adv(1:4, thrice = TRUE)
#> [1] "once" "twice" "thrice" "four times"