Get the depth of piled intervals for each section in the sections of x (see sections).
Usage
depth(x, include_intervals = FALSE)
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.
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.