tableCohortAttrition {CohortCharacteristics} | R Documentation |
Create a visual table from the output of summariseCohortAttrition.
Description
Usage
tableCohortAttrition(
result,
type = "gt",
header = "variable_name",
groupColumn = c("cdm_name", "cohort_name"),
hide = c("variable_level", "reason_id", "estimate_name", settingsColumns(result))
)
Arguments
result |
A summarised_result object. |
type |
Type of table. Check supported types with
|
header |
Columns to use as header. See options with
|
groupColumn |
Columns to group by. See options with
|
hide |
Columns to hide from the visualisation. See options with
|
Value
A formatted table.
Examples
library(CohortCharacteristics)
cdm <- mockCohortCharacteristics()
result <- summariseCohortAttrition(cdm$cohort2)
tableCohortAttrition(result)
mockDisconnect(cdm)
[Package CohortCharacteristics version 0.4.0 Index]