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