tableTopLargeScaleCharacteristics {CohortCharacteristics} | R Documentation |
Visualise the top concepts per each cdm name, cohort, statification and window.
Description
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
|
Value
A formated table.
Examples
## Not run:
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)
## End(Not run)
[Package CohortCharacteristics version 1.0.0 Index]