Learn R Programming

IntervalSurgeon (version 1.3)

proportion_overlap: Calculate proportion overlapping of intersecting intervals

Description

Proportion overlapping is calculated as the size of the intersection of intervals, divided by the size of the union.

Usage

proportion_overlap(...)

Value

data.frame containing integer columns corresponding to indices of intervals within the input matrices and a final numeric column called proportion_overlap containing the fraction of the size of the intersection within the union.

Arguments

...

Interval matrices (passed to join).

Examples

Run this code
proportion_overlap(rbind(c(1, 2), c(49, 51), c(50, 200)), rbind(c(50, 100)))

Run the code above in your browser using DataLab