tableCohortAttrition {CohortCharacteristics} | R Documentation |
Create a visual table from the output of summariseCohortAttrition. 'r lifecycle::badge("experimental")'
tableCohortAttrition(
result,
header = "cdm_name",
groupColumn = "cohort_name",
type = "gt"
)
result |
A summarised_result object generated by summariseCohortAttrition(). |
header |
Columns to use as headers. |
groupColumn |
Columns to use to group. |
type |
Whether a 'gt', 'flextable' or a 'tibble' should be created. |
A visual table.
library(CohortCharacteristics)
cdm <- mockCohortCharacteristics()
cdm$cohort2 |>
summariseCohortAttrition() |>
tableCohortAttrition()