powered by
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, ...)
nom_coll(x, all_n = TRUE, of_the = FALSE, cardinal = TRUE, ...)
A numeric vector.
Whether to include the cardinal number after "all" for collectives of 3 or more. Defaults to TRUE.
TRUE
Whether to include "of the" for collectives other than 1. Defaults to FALSE.
FALSE
Whether to convert the number after "all" with cardinal() when all_n is TRUE. Defaults to TRUE.
cardinal()
all_n
Additional arguments passed to cardinal() when cardinal is TRUE.
cardinal
A character vector of the same length as x.
x
Other number names: adverbial(), cardinal(), denominator(), numerator(), ordinal(), ratio()
adverbial()
denominator()
numerator()
ordinal()
ratio()
# NOT RUN { paste(nom_coll(0:3), "fish") paste(nom_coll(9:12, max_n = 10), "fish") # }
Run the code above in your browser using DataLab