Package: era 0.5.0.9000
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.9000.tar.gz
era_0.5.0.9000.zip(r-4.5)era_0.5.0.9000.zip(r-4.4)era_0.5.0.9000.zip(r-4.3)
era_0.5.0.9000.tgz(r-4.4-any)era_0.5.0.9000.tgz(r-4.3-any)
era_0.5.0.9000.tar.gz(r-4.5-noble)era_0.5.0.9000.tar.gz(r-4.4-noble)
era_0.5.0.9000.tgz(r-4.4-emscripten)era_0.5.0.9000.tgz(r-4.3-emscripten)
era.pdf |era.html✨
era/json (API)
NEWS
# Install 'era' in R: |
install.packages('era', repos = c('https://joeroe.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/joeroe/era/issues
Pkgdown:https://era.joeroe.io
archaeologygeologypaleoclimatepaleontologyvctrs
Last updated 13 days agofrom:b247707e56. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 20 2024 |
R-4.5-win | OK | Nov 20 2024 |
R-4.5-linux | OK | Nov 20 2024 |
R-4.4-win | OK | Nov 20 2024 |
R-4.4-mac | OK | Nov 20 2024 |
R-4.3-win | OK | Nov 20 2024 |
R-4.3-mac | OK | Nov 20 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 |