summariseCohortCount: Summarise counts for cohorts in a cohort table

View source: R/summariseCohortCount.R

summariseCohortCountR Documentation

Summarise counts for cohorts in a cohort table

Description

Summarise counts for cohorts in a cohort table

Usage

summariseCohortCount(cohort, cohortId = NULL, strata = list())

Arguments

cohort

A cohort table in the cdm.

cohortId

A cohort definition id to restrict by. If NULL, all cohorts will be included.

strata

A list of variables to stratify results. These variables must have been added as additional columns in the cohort table.

Value

A summary of counts of the cohorts in the cohort table.

Examples


library(CohortCharacteristics)
library(dplyr, warn.conflicts = FALSE)

cdm <- mockCohortCharacteristics()

summariseCohortCount(cohort = cdm$cohort1) |>
  glimpse()

mockDisconnect(cdm)


CohortCharacteristics documentation built on Oct. 1, 2024, 5:08 p.m.