Function which takes as input two matrices with 2 columns each and checks whether each interval in the first matrix is contained within each interval in the second matrix.
AsubsetB(A, B, B.left.open = FALSE, B.right.open = FALSE)
Matrix of size (nrow(A) * nrow(B)) with binary values indicating whether the intervals in A are contained in B
Two column matrix containing intervals to be checked for being contained in B
Two column matrix containing intervals possibly overlapping the intervals in A
Are the intervals in B left-open?
Are the intervals in B right-open?