Learn R Programming

hgutils (version 0.2.19)

wrap_text_table: Wrap string table

Description

Wrap string table

Usage

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

Value

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

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.

See Also

str_wrap, get_square_grid.

Examples

Run this code
cat(wrap_text_table(LETTERS, exdent=0))

Run the code above in your browser using DataLab