breaks: Get break points for set of intervals

View source: R/functions.R

breaksR 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))

IntervalSurgeon documentation built on April 15, 2023, 5:07 p.m.