Skip to contents

Collapse string of arguments and join them by '+'

Usage

str_collapse(str_vector)

Arguments

str_vector

a vector of strings to be collapsed

Value

A string with the input parameters combined as a string, separated by '+'

Examples

str_collapse("my name")
#> [1] "my name"
str_collapse(c("my name", "is", "jake"))
#> [1] "my name + is + jake"
str_collapse(c("my name", "is", 2))
#> [1] "my name + is + 2"
str_collapse(c(3, 2, "boy"))
#> [1] "3 + 2 + boy"