Package: era 0.5.0
era: Year-Based Time Scales
Provides a consistent representation of year-based time scales as a numeric vector with an associated 'era'. There are built-in era definitions for many year numbering systems used in contemporary and historic calendars (e.g. Common Era, Islamic 'Hijri' years); year-based time scales used in archaeology, astronomy, geology, and other palaeosciences (e.g. Before Present, SI-prefixed 'annus'); and support for arbitrary user-defined eras. Years can converted from any one era to another using a generalised transformation function. Methods are also provided for robust casting and coercion between years and other numeric types, type-stable arithmetic with years, and pretty-printing in tables.
Authors:
era_0.5.0.tar.gz
era_0.5.0.tar.gz(r-4.5-noble)era_0.5.0.tar.gz(r-4.4-noble)
era_0.5.0.tgz(r-4.4-emscripten)era_0.5.0.tgz(r-4.3-emscripten)
era.pdf |era.html✨
era/json (API)
NEWS
# Install 'era' in R: |
install.packages('era', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/joeroe/era/issues
Last updated 5 days agofrom:c461f61683. Checks:OK: 2. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 25 2024 |
R-4.5-linux | OK | Nov 25 2024 |
Exports:eraera_directionera_epochera_labelera_nameera_scaleera_unitera_yearera_year_daysera_year_labelerasis_erais_era_yearis_valid_erais_valid_yris_yrthis_yearvalidate_eravalidate_yryryr_earliestyr_erayr_era<-yr_latestyr_rangeyr_set_erayr_sortyr_transform
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Create an era object | era |
Get parameters of an era | era_direction era_epoch era_label era_name era_parameters era_scale era_unit |
Year units | era_year |
Get the parameters of an 'era_year' object. | era_year_days era_year_label era_year_parameters |
Standard era definitions | eras |
Validation functions for 'era' objects | is_era is_valid_era validate_era |
Validation functions for 'era_year' objects | is_era_year |
Validation functions for 'yr' objects | is_valid_yr is_yr validate_yr |
Current year | this_year |
Create a vector of years with era | yr |
Get or set the era of a vector of years | yr_era yr_era<- yr_set_era |
Chronological minima and maxima | yr_earliest yr_extremes yr_latest yr_range |
Chronological ordering of year vectors | yr_sort |
Convert years from one era to another | yr_transform |