Learn R Programming

IntervalSurgeon (version 1.3)

breaks: 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)

Value

Ordered integer vector of unique interval start/end points.

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.

Examples

Run this code
breaks(cbind(2*1:5, 3*1:5))

Run the code above in your browser using DataLab