MatrixPrintForm | R Documentation |
Constructor for MatrixPrintForm
, an intermediate representation for ASCII table printing.
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
)
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 |
( |
An object of class MatrixPrintForm
. Currently this is implemented as an S3 class inheriting
from list with the following elements:
strings
see argument.
spans
see argument.
aligns
see argument.
display
logical matrix of same dimension as strings
that specifies whether an element
in strings
will be displayed when the table is rendered.
formats
see argument.
row_info
see argument.
line_grouping
see argument.
ref_footnotes
see argument.
main_title
see argument.
subtitles
see argument.
page_titles
see argument.
main_footer
see argument.
prov_footer
see argument.
header_section_div
see argument.
horizontal_sep
see argument.
col_gap
see argument.
table_inset
see argument.
as well as the following attributes:
nlines_header
see argument.
nrow_header
see argument.
ncols
number of columns of the table, not including any row names/row labels
The bare constructor for the MatrixPrintForm
should generally
only be called by matrix_form
custom methods, and almost never from other code.
basic_matrix_form(iris) # calls matrix_form which calls this constructor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.