time_interval: time_interval

View source: R/Helpers.R

time_intervalR Documentation

time_interval

Description

Retrieve the time interval. If a tsibble, values are retrieved with tsibble::interval. If another object, the time index is detected and the Mode of the intervals is used.

Usage

time_interval(x)

Arguments

x

(data.frame/tsibble) input data

Value

(list) with the following:

  • multiplier (numeric) of the multiple of the interval period

  • timeframe (character) describing the interval


jagg19/AlpacaforR documentation built on July 3, 2023, 12:14 p.m.