powered by
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.
addCohortTableIndex(cohort)
The cohort table
A cohort table in a cdm reference.
# \donttest{ library(CohortConstructor) cdm <- mockCohortConstructor() cdm$cohort1 <- addCohortTableIndex(cdm$cohort1) # }
Run the code above in your browser using DataLab