collapse_to_comma_separated {newsanchor}R Documentation

Concatenate character vector to comma-separated string.

Description

collapse_to_comma_separated is a helper function that concatenates a character vector to a comma-separated string. If the input vector has only one element, the element will be returned unchanged.

Usage

collapse_to_comma_separated(v)

Arguments

v

character vector.

Value

string with elements of v separated by comma.


[Package newsanchor version 0.1.1 Index]