Format a summarise_characteristics object into a visual table.
Source:R/tableCharacteristics.R
tableCharacteristics.Rd
Usage
tableCharacteristics(
result,
type = "gt",
header = c("cdm_name", "cohort_name"),
groupColumn = character(),
hide = c(additionalColumns(result), 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 <- summariseCharacteristics(cdm$cohort1)
#> ℹ adding demographics columns
#> ℹ summarising data
#> ✔ summariseCharacteristics finished!
tableCharacteristics(result)
#> `result_id` is not present in result.
#> `result_id` is not present in result.
#> `result_id` is not present in result.
mockDisconnect(cdm)
# }