breaks {IntervalSurgeon} | R Documentation |
Get break points for set of intervals
Description
Get the sorted set start points and end points for a set of intervals specified as an integer matrix.
Usage
breaks(x)
Arguments
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. |
Value
Ordered integer vector of unique interval start/end points.
Examples
breaks(cbind(2*1:5, 3*1:5))
[Package IntervalSurgeon version 1.3 Index]