Learn R Programming

aion (version 1.6.0)

get_calendar: Get or Set the Default Calendar

Description

Get or Set the Default Calendar

Usage

get_calendar(which = c("default", "current"))

set_calendar(x, which = c("default", "current"))

Value

A TimeScale object.

Arguments

which

A character string specifying the calendar to be set. It must be one of "default" or "current". Note that "current" is automatically set by plot() or image() and should not be changed manually.

x

A character string specifying the abbreviated label of the time scale (see calendar()) or an object from which to extract the time scale.

Author

N. Frerebeau

See Also

Other calendar tools: calendar(), calendar_get, convert(), gregorian, is_calendar(), julian()

Examples

Run this code
## Define time scales
calendar("BP")
calendar("AD")
calendar("julian")

## Shortcuts
BP()
AD()
J()

Run the code above in your browser using DataLab