View source: R/combine_words_ptbr.R
| combine_words_ptbr | R Documentation |
combine_words_ptbr() collapse words using ptbr rules. This function
differ from knitr::combine_words()
which uses oxford commas.
combine_words_ptbr(words, sep = NULL, last = NULL)
words |
a character vector with words to combine |
sep |
a character with the separator of the words. Default is NULL and insert ", " |
last |
a character vector with the last separator of the words. Default is NULL and insert " e " |
a character vector
combine_words_ptbr() uses transformers
available in the excellent {glue} package
misc::ipak("glue")
# using in an ordinary text
feira <- c("banana", "maça", "pepino", "ovos")
glue("Por favor, compre: {combine_words_ptbr(feira)}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.