Proportion overlapping is calculated as the size of the intersection of intervals, divided by the size of the union.
proportion_overlap(...)
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.
Interval matrices (passed to join
).
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