split_strings: split_strings

Description Usage Arguments Value

View source: R/utility.R

Description

Wrap long strings at x characters for pretty plotting and data viz.

Usage

1
split_strings(string, nchar = 35)

Arguments

string

of type char: the string that needs to be wrapped

nchar

number of characters to insert a line break after - default: 35

Value

a string with line breaks at every n_char characters


earthlab/qtoolkit documentation built on Feb. 3, 2022, 5:57 a.m.