groupOverlaps {xcms} | R Documentation

## Group overlapping ranges

### Description

`groupOverlaps` identifies overlapping ranges in the input data and groups them by returning their indices in `xmin` `xmax`.

### Usage

    groupOverlaps(xmin, xmax)

### Arguments

`xmin` | `numeric` (same length than `xmax`) with the lower boundary of the range.
`xmax` | `numeric` (same length than `xmin`) with the upper boundary of the range.

### Value

`list` with the indices of grouped elements.

### Author(s)

Johannes Rainer

### Examples

    x <- c(2, 12, 34.2, 12.4)
    y <- c(3, 16, 35, 36)

    groupOverlaps(x, y)

[Package xcms version 3.16.1 Index]