intersected | R Documentation |
Compute a logical vector indicating whether corresponding intervals specified by x
overlap (intersected
)/are covered by (covered
) those in by_intervals
.
intersected(x, by_intervals)
covered(x, by_intervals)
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. |
by_intervals |
Matrix specifying intervals to test for intersection of. |
Logical vector with elements corresponding to rows of x
.
intersected(rbind(c(1, 2), c(49, 51), c(50, 200)), rbind(c(50, 100)))
covered(rbind(c(1, 10), c(49, 51), c(50, 200)), rbind(c(2, 60)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.