Format a summariseTableIntersect result into a visual table.
Source:R/tableSummarised.R
tableTableIntersect.Rd
`r lifecycle::badge("deprecated")`
Usage
tableTableIntersect(
result,
type = "gt",
formatEstimateName = c(`N (%)` = "<count> (<percentage>%)", `Median [Q25 - Q75]` =
"<median> [<q25> - <q75>]", `Mean (SD)` = "<mean> (<sd>)", Range = "<min> to <max>"),
header = c("group"),
split = c("group", "strata"),
groupColumn = NULL,
minCellCount = 5,
excludeColumns = c("result_id", "estimate_type", "variable_level", "additional_name",
"additional_level"),
.options = list()
)
Arguments
- result
A result from summariseTableIntersect.
- type
Type of desired formatted table, possibilities: "gt", "flextable", "tibble".
- formatEstimateName
Named list of estimate name's to join, sorted by computation order. Indicate estimate_name's between <...>.
- header
A vector containing which elements should go into the header in order. Allowed are: `cdm_name`, `group`, `strata`, `additional`, `variable`, `estimate`, `settings`.
- split
A vector containing the name-level groups to split ("group", "strata", "additional"), or an empty character vector to not split.
- groupColumn
Column to use as group labels.
- minCellCount
Counts below which results will be clouded.
- excludeColumns
Columns to drop from the output table.
- .options
Named list with additional formatting options. PatientProfiles::optionsTableCharacteristics() shows allowed arguments and their default values.