tableInObservation {OmopSketch} | R Documentation |
Create a visual table from a summariseInObservation() result.
Description
Create a visual table from a summariseInObservation() result.
Usage
tableInObservation(result, type = "gt")
Arguments
result |
A summarised_result object. |
type |
Type of formatting output table. See |
Value
A formatted table object with the summarised data.
Examples
library(dplyr, warn.conflicts = FALSE)
cdm <- mockOmopSketch()
result <- summariseInObservation(
observationPeriod = 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)
[Package OmopSketch version 0.5.1 Index]