Create a visual table from the output of summariseCohortAttrition.
Source:R/tableCohortAttrition.R
tableCohortAttrition.Rd
Arguments
- result
A summarised_result object. Output of summariseCohortAttrition().
- type
Type of table. Check supported types with
visOmopResults::tableType()
.- header
Columns to use as header. See options with
tidyColumns(result)
.- groupColumn
Columns to group by. See options with
tidyColumns(result)
.- hide
Columns to hide from the visualisation. See options with
tidyColumns(result)
.
Examples
# \donttest{
library(CohortCharacteristics)
cdm <- mockCohortCharacteristics()
result <- summariseCohortAttrition(cdm$cohort2)
tableCohortAttrition(result)
#> ! Results have not been suppressed.
PP_MOCK; cohort_1
PP_MOCK; cohort_2
PP_MOCK; cohort_3
mockDisconnect(cdm)
# }