| MatrixPrintForm {formatters} | R Documentation |
Constructor for Matrix Print Form
Description
Constructor for MatrixPrintForm, an intermediate representation for ASCII table printing.
Usage
MatrixPrintForm(
strings = NULL,
spans,
aligns,
formats,
row_info,
colpaths = NULL,
line_grouping = seq_len(NROW(strings)),
ref_fnotes = list(),
nlines_header,
nrow_header,
has_topleft = TRUE,
has_rowlabs = has_topleft,
expand_newlines = TRUE,
main_title = "",
subtitles = character(),
page_titles = character(),
listing_keycols = NULL,
main_footer = "",
prov_footer = character(),
header_section_div = NA_character_,
horizontal_sep = default_hsep(),
col_gap = 3,
table_inset = 0L,
colwidths = NULL,
indent_size = 2,
fontspec = font_spec(),
rep_cols = 0L
)
Arguments
strings |
( |
spans |
( |
aligns |
( |
formats |
( |
row_info |
( |
colpaths |
( |
line_grouping |
( |
ref_fnotes |
( |
nlines_header |
( |
nrow_header |
( |
has_topleft |
( |
has_rowlabs |
( |
expand_newlines |
( |
main_title |
( |
subtitles |
( |
page_titles |
( |
listing_keycols |
( |
main_footer |
( |
prov_footer |
( |
header_section_div |
( |
horizontal_sep |
( |
col_gap |
( |
table_inset |
( |
colwidths |
( |
indent_size |
( |
fontspec |
( |
rep_cols |
( |
Value
An object of class MatrixPrintForm. Currently this is implemented as an S3 class inheriting
from list with the following elements:
stringssee argument.
spanssee argument.
alignssee argument.
displaylogical matrix of same dimension as
stringsthat specifies whether an element instringswill be displayed when the table is rendered.formatssee argument.
row_infosee argument.
line_groupingsee argument.
ref_footnotessee argument.
main_titlesee argument.
subtitlessee argument.
page_titlessee argument.
main_footersee argument.
prov_footersee argument.
header_section_divsee argument.
horizontal_sepsee argument.
col_gapsee argument.
table_insetsee argument.
as well as the following attributes:
nlines_headersee argument.
nrow_headersee argument.
ncolsnumber of columns of the table, not including any row names/row labels
Note
The bare constructor for the MatrixPrintForm should generally
only be called by matrix_form custom methods, and almost never from other code.
Examples
basic_matrix_form(iris) # calls matrix_form which calls this constructor