powered by
Coerce to character and add the indefinite article, namely 'an' or 'a', depending on the english form of the number involved.
indefinite(n, words = TRUE)
An integer vector to receive the article.
A logical value: should the number be converted to English (TRUE) or left in numerical form (FALSE)?
A character string vector with the appropriate article attached to each component.
Used mainly in documents to allow the appropriate article to be chosen algorithmically.
See Words and words for including numbers in documents.
Words
words
# NOT RUN { indefinite(0:11) indefinite(0:11, FALSE) # }
Run the code above in your browser using DataLab