Examples for 'knitr::combine_words'


Combine multiple words into a single string

Aliases: combine_words

Keywords:

### ** Examples

combine_words("a")
a
combine_words(c("a", "b"))
a and b
combine_words(c("a", "b", "c"))
a, b, and c
combine_words(c("a", "b", "c"), sep = " / ", and = "")
a / b / c
combine_words(c("a", "b", "c"), and = "")
a, b, c
combine_words(c("a", "b", "c"), before = "\"", after = "\"")
"a", "b", and "c"
combine_words(c("a", "b", "c"), before = "\"", after = "\"", oxford_comma = FALSE)
"a", "b" and "c"

[Package knitr version 1.49 Index]