groupOverlaps: Group overlapping ranges

View source: R/functions-utils.R

groupOverlapsR 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)

sneumann/xcms documentation built on Nov. 23, 2024, 6:53 p.m.