Calendar Parameters
Usage
calendar_label(object)
calendar_name(object)
calendar_unit(object)
calendar_epoch(object)
calendar_fixed(object)
calendar_direction(object)
calendar_year(object)
# S4 method for class 'TimeScale'
calendar_label(object)
# S4 method for class 'TimeScale'
calendar_name(object)
# S4 method for class 'TimeScale'
calendar_unit(object)
# S4 method for class 'TimeScale'
calendar_epoch(object)
# S4 method for class 'TimeScale'
calendar_fixed(object)
# S4 method for class 'TimeScale'
calendar_direction(object)
# S4 method for class 'NULL'
calendar_direction(object)
# S4 method for class 'TimeScale'
calendar_year(object)Arguments
- object
A
TimeScaleobject.
Value
calendar_label()returns acharacterstring giving the abbreviated label of the time scale.calendar_name()returns acharacterstring giving the name of the time scale.calendar_unit()returns acharacterstring giving the unit of the calendar.calendar_fixed()returns a length-onenumericvector giving the reference date of the calendar (in rata die).calendar_epoch()returns a length-onenumericvector giving the epoch year from which years are counted (starting date of the calendar, in years).calendar_direction()returns a length-oneintegervector specifying if years are counted backwards (\(-1\)) or forwards (\(1\)) fromepoch. Only the sign ofcalendar_direction()is relevant.calendar_year()returns a length-onenumericvector giving the average length of the year in solar days.
See also
Other calendar tools:
calendar(),
convert(),
get_calendar(),
gregorian,
is_calendar(),
julian()
Examples
## Define time scales
calendar("BP")
#> Before Present (BP): Gregorian years counted backwards from 1950
calendar("AD")
#> Anno Domini (AD): Gregorian years counted forwards from 0
calendar("julian")
#> Julian years counted forwards from 1
## Shortcuts
BP()
#> Before Present (BP): Gregorian years counted backwards from 1950
AD()
#> Anno Domini (AD): Gregorian years counted forwards from 0
J()
#> Julian years counted forwards from 1
