collective | R Documentation |
Convert numbers to collective character vectors (the, both, all three)
collective(x, all_n = TRUE, of_the = FALSE, cardinal = TRUE, ...) nom_coll(x, all_n = TRUE, of_the = FALSE, cardinal = TRUE, ...)
x |
A numeric vector. |
all_n |
Whether to include the cardinal number after "all" for
collectives of 3 or more.
Defaults to |
of_the |
Whether to include "of the" for collectives other than 1.
Defaults to |
cardinal |
Whether to convert the number after "all" with |
... |
Additional arguments passed to |
A character vector of the same length as x
.
Other number names:
adverbial()
,
cardinal()
,
denominator()
,
numerator()
,
ordinal()
,
ratio()
paste(nom_coll(0:3), "fish") paste(nom_coll(9:12, max_n = 10), "fish")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.