Learn R Programming

OmopSketch (version 1.0.0)

tableRecordCount: Create a visual table from a summariseRecordCount() result

Description

[Deprecated]

Usage

tableRecordCount(result, type = "gt")

Value

A formatted table visualisation.

Arguments

result

A summarised_result object (output of summariseRecordCount() ).

type

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

Examples

Run this code
# \donttest{
library(OmopSketch)
library(omock)

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

summarisedResult <- summariseRecordCount(
  cdm = cdm,
  omopTableName = c("condition_occurrence", "drug_exposure"),
  interval = "years",
  ageGroup = list("<=20" = c(0, 20), ">20" = c(21, Inf)),
  sex = TRUE
)

tableRecordCount(result = summarisedResult)

cdmDisconnect(cdm = cdm)
# }

Run the code above in your browser using DataLab