Learn R Programming

tsibble (version 0.5.3)

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)
# }

Run the code above in your browser using DataLab