collapse_and | R Documentation |
Collapses elements of a text vector with commas and inserts 'and' before the last element.
collapse_and(x, oxford = TRUE)
x |
a text vector or a vector coercible to a character. |
oxford |
logical, should the 'and' be placed according to the Oxford comma rule? |
a character string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.