tsibble (version 0.8.2)

new_interval: 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

Run this code
# NOT RUN {
new_interval(hour = 1, minute = 30)
new_interval(NULL) # irregular interval
new_interval() # unknown interval
# }

Run the code above in your browser using DataCamp Workspace