
Create a visual table from a summariseMissingData() result.
Source:R/tableMissingData.R
tableMissingData.RdCreate a visual table from a summariseMissingData() 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 <- summariseMissingData(
cdm = cdm,
omopTableName = c("condition_occurrence", "visit_occurrence")
)
#> The person table has ≤ 1e+05 subjects; skipping sampling of the CDM.
#> The person table has ≤ 1e+05 subjects; skipping sampling of the CDM.
tableMissingData(result = result)
visit_occurrence
condition_occurrence
CDMConnector::cdmDisconnect(cdm = cdm)
# }