View source: R/tableInObservation.R
tableInObservation | R Documentation |
Create a visual table from a summariseInObservation() result.
tableInObservation(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()
result <- summariseInObservation(
cdm$observation_period,
interval = "months",
output = c("person-days", "record"),
ageGroup = list("<=60" = c(0, 60), ">60" = c(61, Inf)),
sex = TRUE
)
result |>
tableInObservation()
PatientProfiles::mockDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.