Learn R Programming

OmopSketch (version 1.0.0)

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

Description

[Deprecated]

Usage

tableInObservation(result, type = "gt")

Value

A formatted table visualisation.

Arguments

result

A summarised_result object (output of summariseInObservation()).

type

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

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab