Learn R Programming

JointAI (version 1.0.6)

add_linebreaks: Add line breaks to a linear predictor string

Description

Adds line breaks to a string, breaking it after a "+" sign to not exceed a given width of characters and taking into account indentation.

Usage

add_linebreaks(string, indent, width = 90L)

Arguments

string

a character string (linear predictor)

indent

integer; number of characters the new line should be indented

width

integer; the maximum number of characters per line