list_string: Create a string out of the strings in vec, by glueing...

View source: R/strings.R

list_stringR Documentation

Create a string out of the strings in vec, by glueing together with commas and placing 'and' before the last one

Description

Create a string out of the strings in vec, by glueing together with commas and placing 'and' before the last one

Usage

list_string(vec)

Arguments

vec

Character vector

Value

A string with the items of vec glued together using commas, with 'and' place before the last one

Examples

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

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