
Create a visual table from a summariseObservationPeriod() result.
Source:R/tableObservationPeriod.R
tableObservationPeriod.Rd
Create a visual table from a summariseObservationPeriod() result.
Arguments
- result
A summarised_result object.
- type
Type of formatting output table. See
visOmopResults::tableType()
for allowed options. Default is"gt"
.- style
Named list that specifies how to style the different parts of the gt or flextable table generated. Accepted style entries are: title, subtitle, header, header_name, header_level, column_name, group_label, and body. Alternatively, use "default" to get visOmopResults style, or NULL for gt/flextable style. Keep in mind that styling code is different for gt and flextable. Additionally, "datatable" and "reactable" have their own style functions. To see style options for each table type use
visOmopResults::tableStyle()
Examples
# \donttest{
library(OmopSketch)
cdm <- mockOmopSketch(numberIndividuals = 100)
result <- summariseObservationPeriod(observationPeriod = cdm$observation_period)
#> ℹ retrieving cdm object from cdm_table.
#> Warning: These columns contain missing values, which are not permitted:
#> "period_type_concept_id"
tableObservationPeriod(result = result)
PatientProfiles::mockDisconnect(cdm = cdm)
# }