Skip to contents

Years with era

Functions for constructing and transforming yr objects, representing years with an associated era.

yr()
Create a vector of years with era
yr_era() yr_set_era() `yr_era<-`()
Get or set the era of a vector of years
yr_transform()
Convert years from one era to another

Era definitions

Functions for defining calendar eras and time scales.

era()
Create an era object
eras()
Standard era definitions

Chronological sorting and extremes

Functions for sorting and calculating the extreme values of yr vectors that take into account the direction of its era.

yr_earliest() yr_latest() yr_range()
Chronological minima and maxima
yr_sort()
Chronological ordering of year vectors

Helper functions

Miscellaneous utility functions for working with yr and era objects.

era()
Create an era object
era_label() era_epoch() era_name() era_unit() era_scale() era_direction()
Get parameters of an era
era_year()
Year units
era_year_label() era_year_days()
Get the parameters of an era_year object.
is_era() validate_era() is_valid_era()
Validation functions for era objects
is_era_year()
Validation functions for era_year objects
is_yr() validate_yr() is_valid_yr()
Validation functions for yr objects
this_year()
Current year