commaAnd: Paste element and add elememt separators.

View source: R/commaAnd.R

commaAndR Documentation

Paste element and add elememt separators.

Description

Paste element and add elememt separators.

Usage

commaAnd(x, comma = ", ", and = " and ")

Arguments

x

vector of to be coerced to character strings (see paste()).

comma

element separator.

and

last element separator (for 3 elements in x and more).

Examples

commaAnd(c("Judith", "Peter", "Rebecca"))

inSileco/letiRmisc documentation built on Sept. 16, 2022, 2:19 p.m.