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))
A cohort table
A cohort table
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.
Number of days to use when merging cohort entries.
Name of the cohort table.