tableInObservation: Create a visual table from a summariseInObservation() result

View source: R/tableInObservation.R

tableInObservationR Documentation

Create a visual table from a summariseInObservation() result

Description

[Deprecated]

Usage

tableInObservation(result, type = "gt")

Arguments

result

A summarised_result object (output of summariseInObservation()).

type

Type of formatting output table. See visOmopResults::tableType() for allowed options. Default is "gt".

Value

A formatted table visualisation.

Examples


library(OmopSketch)
library(dplyr, warn.conflicts = FALSE)
library(omock)

cdm <- mockCdmFromDataset(datasetName = "GiBleed", source = "duckdb")

result <- summariseInObservation(
  observationPeriod = cdm$observation_period,
  interval = "years",
  output = c("person-days", "record"),
  ageGroup = list("<=60" = c(0, 60), ">60" = c(61, Inf)),
  sex = TRUE
)

result |>
  tableInObservation()

cdmDisconnect(cdm = cdm)



OmopSketch documentation built on Aug. 27, 2026, 5:07 p.m.