
Create a visual table from a summarise_omop_snapshot result.
Source:R/tableOmopSnapshot.R
tableOmopSnapshot.Rd
Create a visual table from a summarise_omop_snapshot result.
Arguments
- result
Output from summariseOmopSnapshot().
- 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 = 10)
result <- summariseOmopSnapshot(cdm = cdm)
tableOmopSnapshot(result = result)
General
Cdm
Observation period
Cdm source
PatientProfiles::mockDisconnect(cdm)
# }