8000 Add class for periods · Issue #46 · joeroe/era · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add class for periods #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joeroe opened this issue Feb 18, 2025 · 0 comments
Open

Add class for periods #46

joeroe opened this issue Feb 18, 2025 · 0 comments

Comments

@joeroe
Copy link
Owner
joeroe commented Feb 18, 2025

It would be useful to have a class for representing periods of years (i.e. the span between a start and end age), then we could do e.g.:

neolithic <- yr_period(11.7, 6, "ka
57C9
") # or yr_span()? yr_interval()?

yr(10000, BP) %in% neolithic
# [1] TRUE

seq(neolithic, by = 0.1)
# [1] 11.7 11.6 11.5 [...] 6.1 6.0 ka

# in {c14}
as_cal(neolithic, distribution = "uniform")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0