breakString: Break a string

View source: R/breakString.R

breakStringR Documentation

Break a string

Description

The function breaks a string after around the specified number of characters.

Usage

breakString(x, nChar = 20)

Arguments

x

A string.

nChar

The number of characters after which the new line is inserted. Default to 20.

Value

A string with inserted \n.

Author(s)

Marjan Cugmas

Examples

someText <- "This is the function that breaks a string."
breakString(x = someText, nChar = 20)

multiUS documentation built on Jan. 23, 2023, 5:40 p.m.

Related to breakString in multiUS...