vconcat: Concatenate vector into a string

Description Usage Arguments Value Author(s) Examples

Description

Concatenate vector into a string

Usage

1
vconcat(x, sep = ", ", capsule = FALSE, quote = FALSE)

Arguments

x

vector

sep

character, a delimiter

capsule

logical, weather to capsule with ‘c()’

quote

logical, weather to surround elements by double quotes.

Value

vector

Author(s)

Xiaobei Zhao

Examples

1
2
3
4
5
cat(vconcat(head(letters),capsule=TRUE,quote=TRUE),'\n')
## c("a", "b", "c", "d", "e", "f")

cat(vconcat(head(letters),sep='-'),'\n')
## a-b-c-d-e-f

Xmisc documentation built on May 2, 2019, 8:23 a.m.