wrap_text_table: Wrap string table

wrap_text_tableR Documentation

Wrap string table

Description

Wrap string table

Usage

wrap_text_table(string, exdent, min_size = 9, table_width = 80 - exdent)

Arguments

string

Input vector. Either a character vector, or something coercible to one.

exdent

A non-negative integer giving the indent for all subsequent lines.

min_size

minimal size where a table is constructed, otherwise elements are concatenated with ', '.

table_width

table character width.

Value

A character vector of a wrapped table where rows are separated by the newline character.

See Also

str_wrap, get_square_grid.

Examples

cat(wrap_text_table(LETTERS, exdent=0))

hgutils documentation built on April 12, 2025, 2:21 a.m.