identify consecutively overlapping segments in R Languages

identify consecutively overlapping segments in R

I need to aggregate overlapping segments into a single segment ranging all connected segments. Note that a simple foverlaps cannot detect connections between non overlapping but connected segments, see the example for clarification. If it would rain on my segments in my plot I am looking for the stretches of...
Read More
Incremental sequences with interruptions Languages

Incremental sequences with interruptions

I have a dataset with repeating sequences of TRUE that I would like to label based on some conditions - by id, and by the sequence's incremental value. A FALSE breaks the sequence of TRUEs and the first FALSE that breaks any given sequence of TRUE should be included in...
Read More