Learn R Programming

fuj (version 0.2.1)

collapse: Collapse

Description

Simple wrapper for concatenating strings

Usage

collapse(..., sep = "")

Value

A character vector of concatenated values. See base::paste for more details.

Arguments

...

one or more R objects, to be converted to character vectors.

sep

a character string to separate the terms. Not NA_character_.

Examples

Run this code
collapse(1:10)
collapse(list("a", b = 1:2))
collapse(quick_dfl(a = 1:3, b = 4:6), sep = "-")

Run the code above in your browser using DataLab