
Visualise the top concepts per each cdm name, cohort, statification and window.
Source:R/tableLargeScaleCharacteristics.R
tableTopLargeScaleCharacteristics.Rd
Visualise the top concepts per each cdm name, cohort, statification and window.
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.
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)
} # }