concat_by_line: Concat a list of strings segmented by line

Description Usage Arguments Details Value

View source: R/tools.R

Description

Take a list of strings, concat all the strings in a single long string by separating each one by the given separator sepChar, then segment this long string into strings of a given length nChar.

Usage

1
concat_by_line(str, sepChar = ",", nbChar = 35)

Arguments

str

a list of strings.

sepChar

a string. The string is a separator between each element of list of strings.

nbChar

an integer. It is the length of each line of strings.

Details

None.

Value

Return a vector of strings, the length of each string being lower than nbChar.


functClust documentation built on Dec. 2, 2020, 5:06 p.m.