collapseCohorts {CohortConstructor} | R Documentation |
collapseCohorts()
concatenates cohort records, allowing for some number
of days between one finishing and the next starting.
collapseCohorts(cohort, cohortId = NULL, gap = 0, name = tableName(cohort))
cohort |
A cohort table |
cohortId |
IDs of the cohorts to modify. If NULL, all cohorts will be used; otherwise, only the specified cohorts will be modified, and the rest will remain unchanged. |
gap |
Number of days to use when merging cohort entries. |
name |
Name of the cohort table. |
A cohort table