Skip to content

Add class for periods #46

@joeroe

Description

@joeroe

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") # 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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions