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.7)era_0.5.0.9000.zip(r-4.6)era_0.5.0.9000.zip(r-4.5)
era_0.5.0.9000.tgz(r-4.6-any)era_0.5.0.9000.tgz(r-4.5-any)
era_0.5.0.9000.tar.gz(r-4.7-any)era_0.5.0.9000.tar.gz(r-4.6-any)
era_0.5.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
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/docs site:https://era.joeroe.io
archaeologygeologypaleoclimatepaleontologyvctrs
Last updated from:f3014b45a8. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 130 | ||
| source / vignettes | OK | 194 | ||
| linux-release-x86_64 | OK | 133 | ||
| macos-release-arm64 | OK | 178 | ||
| macos-oldrel-arm64 | OK | 168 | ||
| windows-devel | OK | 126 | ||
| windows-release | OK | 123 | ||
| windows-oldrel | OK | 111 | ||
| wasm-release | OK | 107 |
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 |
