missing.steps: Find missing time steps in an univariate time series

View source: R/functions.r

missing.stepsR Documentation

Find missing time steps in an univariate time series

Description

Irregularities are found by diff.POSIXt. A majority vote using which.max from the package table determines the most common time step. Any differing timesteps are interpreted as missing. A vector containing the locations of those missing time steps is returned. Note that only the location but not how many time steps per gap are missing is returned.

Usage

missing.steps(x)

Arguments

x

an xts object

Value

a numerical vector giving the differences of the time steps of the xts object

a numeric vector

Author(s)

Simon Frey

See Also

fill.missing


freysimon/TigR documentation built on Jan. 26, 2024, 9:01 a.m.