Create a visual table from the output of summariseCohortAttrition.
Source:R/tableCohortAttrition.R
tableCohortAttrition.Rd
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
visOmopResults::tableType()
.- header
Columns to use as header. See options with
availableTableColumns(result)
.- groupColumn
Columns to group by. See options with
availableTableColumns(result)
.- hide
Columns to hide from the visualisation. See options with
availableTableColumns(result)
.
Examples
# \donttest{
library(CohortCharacteristics)
cdm <- mockCohortCharacteristics()
result <- summariseCohortAttrition(cdm$cohort2)
tableCohortAttrition(result)
#> `result_id` is not present in result.
#> `result_id` is not present in result.
#> `result_id` is not present in result.
PP_MOCK; cohort_1
PP_MOCK; cohort_2
PP_MOCK; cohort_3
mockDisconnect(cdm)
# }