combine_words: Combine elements of vector into a single string with commas...

View source: R/combine_words.R

combine_wordsR Documentation

Combine elements of vector into a single string with commas and 'and'

Description

Simplified version of knitr::combine_words()

Usage

combine_words(words)

Arguments

words

Vector of element(s) to be combined into one string.

Value

A length one character vector; elements will be separated by commas.

Author(s)

knitr authors

Examples

combine_words(c("a", "b", "c"))
combine_words(c(1, 2, 3))

djpr-data/djprlabourdash documentation built on April 28, 2023, 6:16 p.m.