check_gaps: Check gaps of a timeseries

Description Usage Arguments Value See Also

Description

Checks gaps of an xts-object and results a data.frame with computed gaps.

Usage

1
2
3
check_gaps(xts, interval_length = 60, interval_unit = c("secs", "mins",
  "hours", "days", "weeks"), gap_unit = c("auto", "secs", "mins", "hours",
  "days", "weeks"), return_xts = FALSE, tz = "GMT")

Arguments

xts

An xts object to be validated.

interval_length

The expected time between two indices.

interval_unit

The unit of time interval.

gap_unit

The unit of the computed gap length.

return_xts

logical. If TRUE, both time series for index and value gaps are returned additionally.

tz

A time zone specification to be used for the conversion, if one is required. System-specific (see time zones), but "" is the current time zone, and "GMT" is UTC (Universal Time, Coordinated). Invalid values are most commonly treated as UTC, on some platforms with a warning.

Value

A data.frame containing starts and ends of gaps. Currently, a gap can be of type "index", which indicates that no index is available or of type "value", which basically means a "NA" value at a given time stamp. Additionally, both time series for index gaps and value gaps can be returned if required.

See Also

xts, difftime, diff.


dleutnant/m181 documentation built on May 15, 2019, 9:16 a.m.