commify: Take the input vector and create a comma-seperated string

View source: R/strings.R

commifyR Documentation

Take the input vector and create a comma-seperated string

Description

Take the input vector and create a comma-seperated string

Usage

commify(vec, use_and = TRUE, and_word = "and")

Arguments

vec

Vector of character strings to use

use_and

Add the word 'and' before the last string

and_word

Word to use for "and" – could be "et" for french

Value

A string

Examples

library(gfutilities)
commify(c("One", "two", "three", "four"))

pbs-assess/gfutilities documentation built on Sept. 18, 2023, 7:57 a.m.