How can I find the intersection percentages of some continuous variables, see the example below, please?
d1<-data.frame(Start=c(10, 8, 6, 4 ), End=c(14, 12, 9,17 ))
I want to check each row of the columns A and B overlap with the rest of the row, instead of for loop? For example,
d1[1,] %overlaps% d1[2,]
and d1[1,] %overlaps% d1[3,]
and ..finally, d3[1,] %overlaps% d4[3,]
How to do that?