str_wrap {thisutils}R Documentation

Wrap text

Description

Wrap text

Usage

str_wrap(x, width = 80)

Arguments

x

A character vector to wrap.

width

The maximum width of the lines.

Value

A character vector with wrapped text.

Examples

str_wrap(rep("Hello, world!", 10))
str_wrap(rep("Hello, world!", 10), width = 10)

[Package thisutils version 0.0.7 Index]