Skip to contents

Visualise the top concepts per each cdm name, cohort, statification and window.

Usage

tableTopLargeScaleCharacteristics(result, topConcepts = 10, type = "gt")

Arguments

result

A summarised_result object.

topConcepts

Number of concepts to restrict the table.

type

Type of table, it can be any of the supported visOmopResults::tableType() formats.

Value

A formated table.

Examples

if (FALSE) { # \dontrun{
library(CohortCharacteristics)
library(duckdb)
library(CDMConnector)
library(dplyr, warn.conflicts = FALSE)

con <- dbConnect(duckdb(), eunomiaDir())
cdm <- cdmFromCon(con = con, cdmSchema = "main", writeSchema = "main")
cdm <- generateConceptCohortSet(
  cdm = cdm,
  conceptSet = list(viral_pharyngitis = 4112343),
  name = "my_cohort"
)

result <- summariseLargeScaleCharacteristics(
  cohort = cdm$my_cohort,
  window = list(c(-Inf, -1), c(0, 0), c(1, Inf)),
  episodeInWindow = "drug_exposure"
)

tableTopLargeScaleCharacteristics(result)

cdmDisconnect(cdm)
} # }