str_csv: Paste values together, separated by commas

str_csvR Documentation

Paste values together, separated by commas

Description

Paste values together, separated by commas

Usage

str_csv(..., collapse = ", ", n = Inf, na = "NA", na.rm = FALSE)

Arguments

...

(character) strings to concatenate

collapse

(character) separator

n

(integer) concatenate at most this many strings

na

(character) if na.rm is FALSE, replace NA values with this

na.rm

(logical) remove NA values? (see also: na parameter, above)

See Also

  • str_and()

Examples

str_csv(1:3)
str_csv(1:3, "A", c("B", "C"))
str_csv(LETTERS, n = 3)


BAAQMD/strtools documentation built on Nov. 23, 2023, 5:52 a.m.