Description Usage Arguments Value Examples
Adds an initial indefinite article "a" or "an" to a numerical
object expressed either as digits or as words in the result.
The capitalized form, Initial
, capitalizes the initial
letter: "An" or "A".
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | indefinite(n, ...)
## S3 method for class 'numeric'
indefinite(n, words = TRUE, ...)
## S3 method for class 'english'
indefinite(n, words = TRUE, ...)
## S3 method for class 'ordinal'
indefinite(n, ...)
## S3 method for class 'character'
indefinite(n, ...)
Indefinite(n, ...)
|
n |
either a numeric vector or a ordinal character string. |
... |
Extra arguments, currently ignored |
words |
logical: should the numbers be expressed as words (TRUE) or digits (FALSE)? |
A character string vector with an article prepended, either capitalized or not.
1 2 3 | indefinite(1:12)
paste0(Indefinite(1:12, FALSE), "-stage process")
cat(paste(Indefinite(ordinal(1:10)), " point is ...\n", sep = ""))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.