cohort_count {CDMConnector} | R Documentation |
Get cohort counts from a generated_cohort_set object.
Description
Get cohort counts from a generated_cohort_set object.
Usage
cohort_count(cohort)
Arguments
cohort |
A generated_cohort_set object. |
Value
A table with the counts.
Examples
## Not run:
library(CDMConnector)
library(dplyr)
con <- DBI::dbConnect(duckdb::duckdb(), eunomia_dir())
cdm <- cdm_from_con(con = con, cdm_schema = "main", write_schema = "main")
cdm <- generateConceptCohortSet(
cdm = cdm, conceptSet = list(pharyngitis = 4112343), name = "new_cohort"
)
cohort_count(cdm$new_cohort)
## End(Not run)
[Package CDMConnector version 1.5.0 Index]