breakStrings: breakStrings

breakStringsR Documentation

breakStrings

Description

breaks a string of long-enough words (or vector thereof) into two lines.

Usage

breakStrings(x, minSizeForBreak = 20, lb = "\n")

Arguments

x

A character (or factor) vector.

minSizeForBreak

The minimum number of characters to be broken into two lines.

lb

The separation character (e.g. line break).

Value

A character vector of length=length(x).

Examples

breakStrings("this is too long for practical purposes")

ETHZ-INS/epiwraps documentation built on Dec. 22, 2024, 4:05 a.m.