Format a summarise_characteristics object into a visual table.
Source:R/tableCharacteristics.R
tableCharacteristics.Rd
Arguments
- result
A summarised_result object. Output of summariseCharacteristics().
- 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 <- summariseCharacteristics(cdm$cohort1)
#> ℹ adding demographics columns
#> ℹ summarising data
#> ✔ summariseCharacteristics finished!
tableCharacteristics(result)
#> ! Results have not been suppressed.
mockDisconnect(cdm)
# }