depth: Depth of piled intervals

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Get the depth of piled intervals for each section in the sections of x (see sections).

Usage

1
depth(x, include_intervals = FALSE)

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.

include_intervals

Logical value determining whether the function should return a vector of depths at each ‘section’ in the range of x (see sections), or a list with properties intervals and depths specifying the intervals of the sections and the corresponding depths respectively.

Value

Integer vector giving depth of piled intervals from x (within each sub-interval) or list containing a property "intervals", a matrix of sections, and property "depths", giving the corresponding pile depths.

Examples

1
depth(cbind(1:10, 11:20))

IntervalSurgeon documentation built on June 16, 2018, 1:36 p.m.