matrix_form,listing_df-method {rlistings} | R Documentation |
Transform rtable
to a list of matrices which can be used for outputting
Description
Although rtable
s are represented as a tree data structure when outputting the table to ASCII or HTML,
it is useful to map the rtable
to an in-between state with the formatted cells in a matrix form.
Usage
## S4 method for signature 'listing_df'
matrix_form(
obj,
indent_rownames = FALSE,
expand_newlines = TRUE,
fontspec = font_spec,
col_gap = 3L
)
Arguments
obj |
( |
indent_rownames |
( |
expand_newlines |
( |
fontspec |
( |
col_gap |
( |
Value
a formatters::MatrixPrintForm object.
See Also
Examples
lsting <- as_listing(mtcars)
mf <- matrix_form(lsting)
[Package rlistings version 0.2.9 Index]