str_flatten: Flatten a string

Description Usage Arguments Value Examples

Description

Flatten a string

Usage

1
str_flatten(string, collapse = "")

Arguments

string

Character to flatten

collapse

String to insert between each piece

Value

A character vector of length 1

Examples

1
2

Example output

[1] "abcdefghijklmnopqrstuvwxyz"
[1] "a-b-c-d-e-f-g-h-i-j-k-l-m-n-o-p-q-r-s-t-u-v-w-x-y-z"

stringr documentation built on May 2, 2019, 11:03 a.m.