gapsts: Gaps in time series

Description Usage Arguments Value Author(s)

View source: R/gapstsExt.R

Description

Determine gaps (time intervals bigger than a certain maximum dtMax) in a time series

Usage

1
gapsts(ts, dtMax,unit = "mins", shiftbegin=FALSE)

Arguments

ts

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.

dtMax

Maximum time interval that is not considered as a gap.

unit

Unit of dtMax. only used when ts is of class POSIXt

shiftbegin

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.

Value

Data frame with the initial time, end time and time difference (unit = unit) of each interval > dtMax

Author(s)

Tom Cox <tom.cox@uantwerp.be>& Lennert Schepers <lennert.schepers@uantwerp.be>


Tides documentation built on May 2, 2019, 2:03 a.m.