tableCohortTiming {CohortCharacteristics} | R Documentation |
Format a summariseCohortTiming result into a visual table.
Description
'r lifecycle::badge("experimental")'
Usage
tableCohortTiming(
result,
timeScale = "days",
type = "gt",
formatEstimateName = c(N = "<count>", `Median [Q25 - Q75]` =
"<median> [<q25> - <q75>]", Range = "<min> - <max>"),
header = c("strata"),
split = c("group", "strata", "additional"),
groupColumn = NULL,
excludeColumns = c("result_id", "estimate_type", "variable_level"),
.options = list()
)
Arguments
result |
A summariseCohortTiming result |
timeScale |
Time scale to plot results. Can be days or years. |
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. |
excludeColumns |
Columns to drop from the output table. |
.options |
named list with additional formatting options. CohortCharacteristics::optionsTableCohortTiming() shows allowed arguments and their default values. |
Value
A formatted table of the summariseCohortTiming result.