add_linebreak: add linebreaks to strings more than n characters in length

View source: R/add_linebreak.R

add_linebreakR Documentation

add linebreaks to strings more than n characters in length

Description

add linebreaks to strings more than n characters in length

Usage

add_linebreak(string, min_length = 10, add_multiple_linebreaks = F)

Arguments

string

string

min_length

minimum length for string to be broken into two lines

add_multiple_linebreaks

if set to T, linebreaks will be added to all but the first whitespace or dash

Value

returns a string


hhilbig/haschaR documentation built on Dec. 26, 2024, 5:40 a.m.