Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

str_flatten

Flatten a string


Description

Flatten a string

Usage

str_flatten(string, collapse = "")

Arguments

string

Character to flatten

collapse

String to insert between each piece

Value

A character vector of length 1

Examples

str_flatten(letters)
str_flatten(letters, "-")

stringr

Simple, Consistent Wrappers for Common String Operations

v1.4.0
GPL-2 | file LICENSE
Authors
Hadley Wickham [aut, cre, cph], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.