Copies the local CDM to an in-memory DuckDB database, runs
generateCohortSet, then collects the generated cohort table
and its attributes back into R and adds them to the input CDM.
generateCohortSetLocal(
cdm,
cohortSet,
name,
computeAttrition = TRUE,
overwrite = TRUE
)The input cdm with the new cohort table added (as local
dataframes).
A local cdm object (list of dataframes, e.g. from
dplyr::collect(cdm)).
A cohort set from readCohortSet.
Name of the cohort table to create.
Whether to compute attrition.
Whether to overwrite an existing cohort table.