formatSummaryStatisticsTable {inTextSummaryTable} | R Documentation |
Format summary statistics table for export
Description
Format summary statistics table for export
Usage
formatSummaryStatisticsTable(
summaryTable,
rowVar = getAttribute(summaryTable, "rowVar"),
colVar = getAttribute(summaryTable, "colVar"),
colTotalLab = getAttribute(summaryTable, "colTotalLab", default = "Total"),
colHeaderTotalInclude = TRUE,
statsVar = getAttribute(summaryTable, "statsVar"),
statsLabInclude = NULL,
statsLayout = "row",
statsValueLab = "StatisticValue",
emptyValue = "-"
)
Arguments
summaryTable |
A |
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. |
colVar |
Character vector with variable(s) to be included in columns.
If multiple variables are specified, the variables should
be sorted in hierarchical order,
and are included in multi-columns layout. |
colTotalLab |
String, label for the total column 'Total' by default. |
colHeaderTotalInclude |
Logical, if TRUE include the total of number of patients
( |
statsVar |
Character vector with columns of |
statsLabInclude |
Logical, if TRUE include the statistic label
in the table. |
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. |
emptyValue |
String with placeholder used to fill the table for missing values, '-' by default. This value is typically used e.g. if not all statistics are computed for all specified row/col/var variables. |
Value
summaryTable reformatted to wide format
Author(s)
Laure Cougnaud