Learn R Programming

hgutils (version 0.2.19)

create_text_table: Creates a text table

Description

Creates a text table

Usage

create_text_table(string, table_width = 80, compact = TRUE)

Value

A vector of strings per row, forming together a table.

Arguments

string

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

table_width

table character width.

compact

whether to take only the necessary space (TRUE) or to fill out the table_width (FALSE).

See Also

get_square_grid.

Examples

Run this code
cat(create_text_table(LETTERS),sep = "\n")

Run the code above in your browser using DataLab