opts_tbl_ts: Constructive options for class 'tbl_ts'

View source: R/s3-tbl_ts.R

opts_tbl_tsR Documentation

Constructive options for class 'tbl_ts'

Description

These options will be used on objects of class 'tbl_ts', also known as tsibbles.

Usage

opts_tbl_ts(constructor = c("tsibble", "as_tsibble", "next"), ...)

Arguments

constructor

String. Name of the function used to construct the object, see Details section.

...

Additional options used by user defined constructors through the opts object

Details

Depending on constructor, we construct the object as follows:

  • "tsibble" (default): Wrap the column definitions in a tsibble::tsibble() call. If some column names conflict with the arguments of tsibble::tsibble() we fall back to "as_tsibble".

  • "as_tsibble" : Construct the underlying tibble and pipe it into tsibble::as_tsibble(). Use opts_tbl_df() to tweak the construction of the tibble.

  • "next" : Use the constructor for the next supported class. Call .class2() on the object to see in which order the methods will be tried.

The "interval" attribute is always recomputed by 'tsibble', we only set regular = FALSE for irregular tsibbles.

Value

An object of class <constructive_options/constructive_options_tbl_ts>


constructive documentation built on Oct. 22, 2026, 5:07 p.m.