R: Create a time interval

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)

[Package tsibble version 0.6.2 Index]