vec2string: DEPRECATED: Turn a vector into one long string, used to...

Description Usage Arguments Value Examples

View source: R/convenience.r

Description

DEPRECATED: Turn a vector into one long string, used to generate messages

Usage

1
vec2string(x, quoted = TRUE, add_and = TRUE)

Arguments

x

Vector to convert

quoted

Should the individual elements have quotes around them?

add_and

Should we add an 'and' before the last element

Value

A string (length 1 character vector)

Examples

1
2
3
4
## Not run: 
vec2string(c(1,2,3))  # "'1', '2', and '3'"

## End(Not run)

karldw/kdw.junk documentation built on Sept. 8, 2021, 9:30 p.m.