groupOverlaps: Group overlapping ranges

Description Usage Arguments Value Author(s) Examples

View source: R/functions-utils.R

Description

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

Usage

1
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

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

groupOverlaps(x, y)

xcms documentation built on Nov. 8, 2020, 5:13 p.m.