periodicity {quantmod} | R Documentation |
Estimate the periodicity of a time series like object by calculating the median time between observations in days.
periodicity(x, ...)
x |
a zoo-like object with a Date based index |
... |
unused |
A simple wrapper to quickly estimate the periodicity of a given data. Returning a statement of the median number of days between observations.
An object of class 'difftime'
This should be extended to handle non-zoo objects, though that hasn't happened : \
Jeffrey A. Ryan
zoo.ts <- zoo(rnorm(231),as.Date(13514:13744,origin="1970-01-01")) periodicity(zoo.ts)