string_join: Join elements into a single string

View source: R/string_join.R

string_joinR Documentation

Join elements into a single string

Description

Join (collapse) elements into a single string or vector.

Usage

string_join(s, collapse)

Arguments

s

A string (character) vector.

collapse

A string by which to separate the elements of a vector.

Details

string_join() joins vector elements into a single string. Synonyms are s_join() and join().

Value

Character vector.

See Also

https://github.com/robertschnitman/stringops

Examples

string_join(rownames(mtcars), ", ")

robertschnitman/stringops documentation built on Aug. 15, 2022, 3:46 p.m.