Writes a table as a LaTeX tabular
where groups are separated by a vertical space and repeated entries of the same entry are omitted.
1 2 3 4 5 6 7 8 9 10 11 12 | print_grouped_xtable(dt, group_by = NULL, align = NULL,
vertical_gap = 0.5, vertical_gap_units = "baselineskip",
out.file = NULL, overwrite = TRUE, booktabs = TRUE,
tab.environment = c("tabular", "tabularx", "longtable"),
tabularx.width = "\\linewidth",
logical_fn = c(`\\parbox[c]{0.9\\PositionColumnWidth}{\\centering\\XSolidBold}`
= FALSE,
`\\parbox[c]{0.9\\PositionColumnWidth}{\\centering\\CheckmarkBold}`
= TRUE, ` ` = NA),
column_format = getOption("xtable.sanitize.colnames.function",
function(x) sprintf("\\textbf{%s}", x)), caption = NULL,
label = NULL, no_space_grep = NULL)
|
dt |
A |
group_by |
The columns that identify groups. If |
align |
The character vector passed to |
vertical_gap |
A nominal numeric value for the narrowest vertical gap. |
vertical_gap_units |
The units of |
out.file |
The file to divert the LaTeX code to. |
overwrite |
(logical, default: |
booktabs |
(logical, default: |
tab.environment |
Which tabular environment should the table be enclosed in. By default |
tabularx.width |
If |
logical_fn |
How should logical columns be reformatted? |
column_format |
How should column names be formatted? Defaults to the |
caption, label |
A caption (placed above) the table and the correponding label. |
no_space_grep |
If the value of the group (coerced to character) matches this perl regular expression, no group space is added. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.