tableRecordCount {OmopSketch}R Documentation

Create a visual table from a summariseRecordCount() result.

Description

Create a visual table from a summariseRecordCount() result.

Usage

tableRecordCount(result, type = "gt")

Arguments

result

A summarised_result object.

type

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

Value

A formatted table object with the summarised data.

Examples


library(dplyr, warn.conflicts = FALSE)

cdm <- mockOmopSketch()

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)

PatientProfiles::mockDisconnect(cdm = cdm)


[Package OmopSketch version 0.5.1 Index]