Learn R Programming

CDMConnector (version 1.7.0)

cohort_count: Get cohort counts from a generated_cohort_set object.

Description

[Deprecated]

Usage

cohort_count(cohort)

Value

A table with the counts.

Arguments

cohort

A generated_cohort_set object.

Examples

Run this code
if (FALSE) {
library(CDMConnector)
library(dplyr)

con <- DBI::dbConnect(duckdb::duckdb(), eunomiaDir())
cdm <- cdmFromCon(con = con, cdmSchema = "main", writeSchema = "main")
cdm <- generateConceptCohortSet(
  cdm = cdm, conceptSet = list(pharyngitis = 4112343), name = "new_cohort"
)
cohortCount(cdm$new_cohort)
}

Run the code above in your browser using DataLab