annotate {IntervalSurgeon} | R Documentation |
Create a list of vectors of indices/names of intervals/points in y
(if y
is a two-column matrix/vector respectively) which intersect with each interval/point in x
(if x
is a two-column matrix/vector respectively).
annotate(x, annotation)
x |
Integer matrix of two columns, the first column giving the (inclusive) start points of intervals and the second column giving the corresponding (exclusive) end points, or, an integer vector specifying the location of points. |
annotation |
Matrix specifying intervals or vector specifying points with which to annotate |
List of vectors of indices of overlapping intervals/points.
annotate(rbind(A=c(1, 100), B=c(50, 100)), rbind(a=c(1, 2), b=c(49, 51), c=c(50, 200))) annotate(rbind(A=c(1, 100), B=c(50, 100)), c(a=1, b=49, c=51, d=100))