Skip to contents

The row names are also considered a column for the output

Usage

propose_column_widths(x, indent_size = 2)

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.

Value

a vector of column widths based on the content of x

for use in printing and pagination.

Examples

mf <- basic_matrix_form(mtcars)
propose_column_widths(mf)
#> rnms  mpg  cyl disp   hp drat   wt qsec   vs   am gear carb 
#>   19    4    3    5    3    4    5    5    2    2    4    4