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", settingsColumns(result))
)
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
  | 
A formatted 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.