| pull_interval {tsibble} | R Documentation |
Assuming regularly spaced time, the pull_interval() returns a list of time
components as the "interval" class.
pull_interval(x)
x |
A vector of |
index_valid() and pull_interval() make a tsibble extensible to
support custom time index.
an "interval" class (a list) includes "year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond", "microsecond", "nanosecond", "unit".
x <- seq(as.Date("2017-10-01"), as.Date("2017-10-31"), by = 3)
pull_interval(x)