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

character vector of strings to reformat.

exdent

non-negative integer giving indentation of following lines in each paragraph

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 March 31, 2022, 5:06 p.m.