opts_Period: Constructive options for class 'Period'

View source: R/s4-Period.R

opts_PeriodR Documentation

Constructive options for class 'Period'

Description

These options will be used on objects of class 'Period'.

Usage

opts_Period(constructor = c("period", "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:

  • "period" (default): We build the object using lubridate::period(), providing the years, months, days, hours, minutes and seconds arguments, omitting the components that are zero for all elements.

  • "next" : Use the constructor for the next supported class.

Value

An object of class <constructive_options/constructive_options_Period>


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