vec2string: Turn a vector into a single character string

View source: R/vec2string.R

vec2stringR Documentation

Turn a vector into a single character string

Description

Turn a vector into a single character string with the items separated by commas and an "and".

Usage

vec2string(x, conjunction = "and")

Arguments

x

A vector

conjunction

Word used to combine the strings

Examples

vec2string(letters[1:2])
vec2string(letters[1:4])
vec2string(letters[1:4], "or")

broman documentation built on July 8, 2022, 5:07 p.m.

Related to vec2string in broman...