Determine gaps (time intervals bigger than a certain maximum dtMax) in a time series
gapsts(ts, dtMax,unit = "mins", shiftbegin=FALSE)
Array of times, not necessarily of class POSIXt
. Time sequences with differences of subsequent values < dtMax are considered a continuous series. Time differences > dtMax are considered gaps between two consecutive series.
Maximum time interval that is not considered as a gap.
Unit of dtMax. only used when ts is of class POSIXt
IF TRUE, the beginning of the gap is estimated at the time of the presumed (but not available) next sample, with the sampling rate derived from the time step between fore-last and last measurement before the gap. If FALSE the gap is assumed to begin at the time of the last sample.
Data frame with the initial time, end time and time difference (unit = unit) of each interval > dtMax