Convert a vector of points into a data.frame of start/end points representing disjoint intervals
Source:R/utils.R
index_to_start_end.Rd
Convert a vector of points into a data.frame of start/end points representing disjoint intervals
Arguments
- p
integer, a vector of points to be broken up into intervals
- right
logical, whether the points should represent interval starts (FALSE) or interval ends (TRUE), default TRUE