pull_interval: Extract time interval from a vector
Description
Assuming regularly spaced time, the pull_interval() returns a list of time
components as the "interval" class.
Usage
pull_interval(x)
Arguments
x
A vector of POSIXt, Date, yearmonth, yearquarter, difftime,
hms, integer, numeric.
Value
an "interval" class (a list) includes "year",
"quarter", "month", "week", "day", "hour", "minute", "second", "millisecond",
"microsecond", "nanosecond", "unit".
Details
index_valid() and pull_interval() make a tsibble extensible to
support custom time index.