Propose Column Widths based on an object's MatrixPrintForm form
Source: R/tostring.R
propose_column_widths.RdThe row names are also considered a column for the output
Arguments
- x
MatrixPrintFormobject, or an object with amatrix_formmethod.- indent_size
numeric(1). Indent size in characters. Ignored when
xis already aMatrixPrintFormobject in favor of information there.
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