Skip to contents

Create a visual table from a summarise_omop_snapshot result.

Usage

tableOmopSnapshot(result, type = "gt", style = "default")

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()

Value

A formatted table object with the summarised data.

Examples

# \donttest{
library(OmopSketch)

cdm <- mockOmopSketch(numberIndividuals = 10)

result <- summariseOmopSnapshot(cdm = cdm)

tableOmopSnapshot(result = result)
Estimate
Database name
mockOmopSketch
General
Snapshot date 2025-09-08
Person count 10
Vocabulary version v5.0 18-JAN-19
Cdm
Source name eunomia
Version 5.3
Holder name -
Release date -
Description -
Documentation reference -
Observation period
N 10
Start date 1973-05-14
End date 2019-06-07
Cdm source
Type duckdb
Package Unknown
Length 0
Class1 cdm_source
Class2 db_cdm
Mode list
PatientProfiles::mockDisconnect(cdm) # }