proportion_overlap {IntervalSurgeon} | R Documentation |
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(...)
Arguments
... |
Interval matrices (passed to |
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.
Examples
proportion_overlap(rbind(c(1, 2), c(49, 51), c(50, 200)), rbind(c(50, 100)))
[Package IntervalSurgeon version 1.3 Index]