Learn R Programming

taxlist (version 0.3.0)

collapse_names: Collapse names

Description

Collapse name strings for document contents. It will be used internally when formatting several names and including them in a text body.

Usage

collapse_names(x, collapse)

Arguments

x

A character vector containing a chain of names.

collapse

A character value or vector used to collapse the names and passed to paste0. If its lenght is 2, the second value will be used to connect the two last names.