str_collapse: Collapse String List

Description Usage Arguments Value

View source: R/topic-names.R

Description

Collapses a list of strings but limits the number of strings collapsed to max_n

Usage

1
str_collapse(str_list, len, max_n = 2)

Arguments

len

An integer. Length over which to use only the first max_n strings.

max_n

An integer. Maximum number of strings to collapse.

Value

A string which is a comma separated list of collapsed strings.


nateaff/legolda documentation built on Sept. 24, 2017, 4:38 a.m.