Learn R Programming

tolBasis (version 1.0)

DateSet: Dating DateSet

Description

Creates a new dating of subclass DateSet.

Usage

DateSet(name, dates, envir=.Dating, overwrite=FALSE)

Arguments

name
a valid Dating name (not yet in use)
dates
a set of all dates belonging to the dating
envir
an environment to be used
overwrite
indicates whether an existing Dating should be overwritten

Value

Returns the new Dating object. The object and its dates (called .Dates) are assigned at the specified environment.

Details

An environment called .Dating is defined and used by default to contain the user-defined datesets.

See Also

See also the reference for Dating objects.

Examples

Run this code
# Creates a new dateset with an only date: today
## Not run: DateSet("Today", Sys.Date())

Run the code above in your browser using DataLab