
Format a summarise_characteristics object into a visual table.
Source:R/tableCohortCount.R
tableCohortCount.Rd
Usage
tableCohortCount(
result,
type = "gt",
header = "cohort_name",
groupColumn = character(),
hide = c("variable_level", settingsColumns(result)),
.options = list()
)
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)
.- .options
A named list with additional formatting options.
visOmopResults::tableOptions()
shows allowed arguments and their default values.
Examples
# \donttest{
library(CohortCharacteristics)
cdm <- mockCohortCharacteristics()
result <- summariseCohortCount(cdm$cohort1)
#> ℹ summarising data
#> ℹ summarising cohort cohort_1
#> ℹ summarising cohort cohort_2
#> ℹ summarising cohort cohort_3
#> ✔ summariseCharacteristics finished!
tableCohortCount(result)
#> `result_id` is not present in result.
#> `result_id` is not present in result.
#> `result_id` is not present in result.
mockDisconnect(cdm = cdm)
# }