Learn R Programming

formatters (version 0.5.0)

propose_column_widths: Propose Column Widths based on an object's MatrixPrintForm form

Description

The row names are also considered a column for the output

Usage

propose_column_widths(x, indent_size = 2)

Value

a vector of column widths based on the content of x

for use in printing and pagination.

Arguments

x

MatrixPrintForm object, or an object with a matrix_form method.

indent_size

numeric(1). Indent size in characters. Ignored when x is already a MatrixPrintForm object in favor of information there.

Examples

Run this code
mf <- basic_matrix_form(mtcars)
propose_column_widths(mf)

Run the code above in your browser using DataLab