new_interval {tsibble}R Documentation

Create a time interval

Description

new_interval() creates an interval object with the specified values.

Usage

new_interval(...)

Arguments

...

A list of time units to be included in the interval and their amounts. "year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond", "microsecond", "nanosecond", "unit" are supported.

Value

an "interval" class

Examples

new_interval(hour = 1, minute = 30)
new_interval(NULL) # irregular interval
new_interval() # unknown interval

[Package tsibble version 0.8.2 Index]