Learn R Programming

functClust (version 0.1.6)

concat_by_line: Concat a list of strings segmented by line

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

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.

Value

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

Details

None.