opts_Date {constructive}R Documentation

Constructive options class 'Date'

Description

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

Usage

opts_Date(
  constructor = c("as.Date", "as_date", "date", "new_date", "as.Date.numeric",
    "as_date.numeric", "next", "double"),
  ...,
  origin = "1970-01-01"
)

Arguments

constructor

String. Name of the function used to construct the object.

...

Additional options used by user defined constructors through the opts object

origin

Origin to be used, ignored when irrelevant.

Details

Depending on constructor, we construct the object as follows:

If the data is not appropriate for a constructor we fall back to another one appropriately.

Value

An object of class <constructive_options/constructive_options_Date>


[Package constructive version 1.0.1 Index]