Skip to contents

Join character vectors by commas and spaces (optionally).

Join character vectors by newlines (\n).

Join character vector by spaces.

Usage

str_comma(..., space = TRUE, collapse = TRUE)

str_line(..., collapse = TRUE)

str_space(..., collapse = TRUE)

Arguments

...

Character vectors or scalars. Passed to stringr::str_c(). For catn(), character vectors or scalars to join.

space

A logical scalar: if TRUE, add space after commas.

collapse

A logical scalar: if TRUE, join also character vectors passed to ....

Value

A character scalar.