Learn R Programming

yulab.utils (version 0.2.3)

str_wrap: str_wrap

Description

Wrap long strings to multiple lines

Usage

str_wrap(string, width = getOption("width"))

Value

Updated strings with "\n" inserted

Arguments

string

Input string

width

Maximum characters before wrapping

Author

Guangchuang Yu

See Also

Other str-utils: str_detect(), str_extract(), str_starts()