paste_vec: Concatenate a vector of strings

Description Usage Examples

View source: R/misc.R

Description

'paste_vec' works the same as paste, but instead of taking arguments directly (i.e. using '...') it takes them as a vector.

Usage

1
paste_vec(.dots, sep = "")

Examples

1
2
3
4
data_vec <- c('hello', 'world')

# Same as do.call(paste, c(data_vec, list(sep = ' ')))
paste_vec(data_vec, sep = ' ')

gmega/megautils documentation built on Sept. 14, 2020, 8:06 p.m.