x2long.obj: An object from cm_range2long, cm_time2long or cm_df2long.
overlap.code.list: A list of named character vectors of at least two code column names to aggregate co-occurrences.
combine.code.list: A list of named character vectors of at least two code column names to combine
exclude.code.list: A list of named character vectors of at least two code column names to compare and exclude. The last column name is the one that will be excluded.
rm.var: Name of the repeated measures column.
Returns
Returns a dataframe with overlapping, combined occurrences, and/or exclusion of supplied overlapping codes added.
Note
The code column must be named "code" and your start and end columns must be named "start" and "end".