commify | R Documentation |
Take the input vector and create a comma-seperated string
commify(vec, use_and = TRUE, and_word = "and")
vec |
Vector of character strings to use |
use_and |
Add the word 'and' before the last string |
and_word |
Word to use for "and" – could be "et" for french |
A string
library(gfutilities)
commify(c("One", "two", "three", "four"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.