Skip to contents

dump a named vector into character

Usage

collapse_vector(named_vector, front_name = TRUE, collapse = ",")

Arguments

named_vector

a named vector

front_name

if TRUE, put names to former

collapse

collapse separator

Value

character

Examples

collapse_vector(c(e = 1:4), front_name = TRUE, collapse = ";")
#> [1] "e1(1);e2(2);e3(3);e4(4)"