Description Usage Arguments Value See Also
Checks gaps of an xts-object and results a data.frame with computed gaps.
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")
|
xts |
An |
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.