breakString {multiUS}R 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)

[Package multiUS version 1.2.3 Index]