cdm_table into episodes.Collapse records of a cdm_table into episodes.
collapseRecords(x, startDate, endDate, by, gap = 0L, name = NULL)The x
cdm_table with the records collapsed.
A cdm_table object.
Column in x that points to the start date of the record.
Column in x that point to the end date of the record.
Columns in x that aggregate the records.
Integer; distance allowed between two consecutive records to be collapsed.
Name of the new cdm_table created.