comma_and: Generate a list of text grammatically correctly

View source: R/text_helpers.R

comma_andR Documentation

Generate a list of text grammatically correctly

Description

Generate a list of text grammatically correctly

Usage

comma_and(x, oxford_comma = TRUE, conjunction = "and")

Arguments

x

a vector to be put into a list.

oxford_comma

Should the Oxford comma be used?

conjunction

The conjunction to use (without spaces). conjunction will usually be "and" or "or".

Value

A character string of the vector input separated by commas and the word "and" as appropriate.


billdenney/bsd.report documentation built on Jan. 16, 2024, 12:54 a.m.