# Stack Overflow Examples

This vignette collects links to a number of Stack Overflow questions that use ivs to answer them. They are roughly grouped by the function used to solve the question.

#### iv_groups()

- Flatten / Merge overlapping time periods by group

- Merge millisecond date-time periods

- Merge overlapping date-time intervals by group

- Group hospital patient stay dates

- Merge overlaps within groups

- Detect self-overlaps within groups

#### iv_identify_group()

- Identify overlapping date ranges

- Determine if a date interval overlaps other date intervals

- Identify active maintanence types

#### iv_identify_splits()

- Find overlaps and create new rows for each overlap

#### iv_count_between()

- Aggregate rolling enrollment by month

- Another aggregate rolling enrollment by month

#### iv_count_overlaps()

- Detect self-overlaps

#### iv_count_includes()

- Track rolling monthly disease prevalence

#### iv_set_complement()

- Find ranges of dates where an apartment is empty

#### iv_locate_overlaps()

- Locate self overlaps and compute a proportion within those overlaps

#### iv_overlaps()

- Detecting if there are any overlaps between two sets of ranges