View source: R/DT-exportSummaryStatisticsTableToDT.R
exportSummaryStatisticsTableToDT | R Documentation |
Export summary table to an interactive DT table, e.g. to be exported into an html document.
exportSummaryStatisticsTableToDT(
summaryTable,
rowVar = getAttribute(summaryTable, "rowVar"),
rowVarLab = getAttribute(summaryTable, "rowVarLab", default = getLabelVar(rowVar,
labelVars = labelVars)),
rowVarInSepCol = NULL,
statsVar = getAttribute(summaryTable, "statsVar"),
statsLayout = getAttribute(summaryTable, "statsLayout", default = "col"),
statsValueLab = "StatisticValue",
title = NULL,
expandVar = NULL,
noEscapeVar = NULL,
barVar = NULL,
pageDim = NULL,
labelVars = NULL,
file = NULL,
...
)
summaryTable |
Summary table as provided by the
|
rowVar |
Character vector with variable(s) to be included in the rows. If multiple variables are specified, the variables should be sorted in hierarchical order (e.g. body system class before adverse event term) and are nested in the table. |
rowVarLab |
Named character vector with
label for the |
rowVarInSepCol |
Character vector with |
statsVar |
Character vector with columns of |
statsLayout |
String with layout for the statistics names (in case more than one statistic is included), among:
|
statsValueLab |
String with label for the statistic value,
'StatisticValue' by default. |
title |
Character vector with title(s) for the table.
Set to NULL (by default) if no title should be included.
If multiple are specified, specified for each element of |
expandVar |
(DT output) Character vector with variables of the summary table which should be expanded in the data. |
noEscapeVar |
(DT output) Character vector with variables of |
barVar |
(DT output) Character vector with variables of |
pageDim |
Numeric vector of length 2 with page width and height.
|
labelVars |
(optional) Named character vector with label for
the row, column variable(s) or variable(s) to summarize. |
file |
String with path of the file where the table should be exported.
The file should have the extension: '.docx'.
If NULL, the summary table is not exported but only returned as output.
If |
... |
(DT output) Extra parameters passed to the
|
A datatable
object.
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.