Splits sequence into lines of indicated length (by default 80) and adds spaces between groups (by default 10 characters). To be used with indices preferably.

sequence_to_lines(sequence)

Arguments

sequence

[character(1)]
A single string with sequence to split into lines.

Value

A vector of strings, each element being its own line.