addCohortTableIndex: Add an index to a cohort table

View source: R/addIndex.R

addCohortTableIndexR Documentation

Add an index to a cohort table

Description

Adds an index on subject_id and cohort_start_date to a cohort table. Note, currently only indexes will be added if the table is in a postgres database.

Usage

addCohortTableIndex(cohort)

Arguments

cohort

A cohort table in a cdm reference.

Value

The cohort table

Examples


library(CohortConstructor)
cdm <- mockCohortConstructor()
cdm$cohort1 <- addCohortTableIndex(cdm$cohort1)


CohortConstructor documentation built on Dec. 23, 2025, 9:07 a.m.