View source: R/tableCohortAttrition.R
tableCohortAttrition | R Documentation |
tableCohortAttrition(
result,
type = "gt",
header = "variable_name",
groupColumn = c("cdm_name", "cohort_name"),
hide = c("variable_level", "reason_id", "estimate_name")
)
result |
A summarised_result object. Output of summariseCohortAttrition(). |
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
|
A visual table.
library(CohortCharacteristics)
cdm <- mockCohortCharacteristics()
result <- summariseCohortAttrition(cdm$cohort2)
tableCohortAttrition(result)
mockDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.