A simple wrapper for paste(x, collapse).
paste(x, collapse)
collapse(x, sep = ",")
x
[vector] Vector to collapse.
vector
sep
[character(1)] Passed to collapse in paste. Default is “,”.
character(1)
collapse
paste
[character(1)].
collapse(c("foo", "bar"))
## [1] "foo,bar"
collapse(c("foo", "bar"), sep = ";")
## [1] "foo;bar"