View source: R/tableRecordCount.R
tableRecordCount | R Documentation |
Create a visual table from a summariseRecordCount() result.
tableRecordCount(result, type = "gt")
result |
A summarised_result object. |
type |
Type of formatting output table, either "gt", "reactable" or "datatable". |
A gt or flextable object with the summarised data.
library(dplyr, warn.conflicts = FALSE)
cdm <- mockOmopSketch()
summarisedResult <- summariseRecordCount(
cdm = cdm,
omopTableName = c("condition_occurrence", "drug_exposure"),
interval = "years",
ageGroup = list("<=20" = c(0, 20), ">20" = c(21, Inf)),
sex = TRUE
)
summarisedResult |>
tableRecordCount()
PatientProfiles::mockDisconnect(cdm = cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.