sgtable: construct a segment table

Description Usage Arguments Value

View source: R/dpseg.R

Description

Constructs a segment table from segment ends (imax) returned by dpseg backtracing functions backtrace_r and backtrace_c. Correct segment break-points require to know whether segment recursion was run with the jumps option of dpseg. In joint segments (jumps=FALSE) segment borders are part of both left and right segments.

Usage

1
sgtable(ends, starts, jumps = TRUE)

Arguments

ends

integer vector of segment ends

starts

integer vector of segment starts

jumps

same parameter as passed to recursion function, allowing for discontinous jumps (TRUE) or enforcing joint segments (FALSE)

Value

a table with segment start and end columns


dpseg documentation built on Aug. 17, 2020, 5:06 p.m.