Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

which.CalDates

Which indices for calibrated dates


Description

Gives the TRUE indices of calibrated dates (CalDates class object) based on Logical expressions of time intervals.

Usage

which.CalDates(x, s, p)

Arguments

x

A CalDates class object

s

Logical expression indicating dates to keep. The expression should include the term BP which refers to specific dates.

p

Probability mass meeting the condition defined by ss.

Details

The function subsets CalDates class objects by identifying all dates that have a probability mass larger than p for a user defined logical expression of temporal interval containing the term BP, where BP refers to radiocarbon date. See examples for further detailes

Value

A CalDates class object.

Examples

## Generate some calibrated dates
x = calibrate(c(12100,5410,5320,3320),errors=c(20,20,30,30))
## Subsets all dates that have a probability mass above 0.8 before 10000 BP
x2 = which.CalDates(x,BP>10000,p=0.8)
## Subsets all dates that have a probability mass above 0.5 between 6000 and 6300 BP
x3 = which.CalDates(x,BP>6000&BP<6300,p=0.5)

rcarbon

Calibration and Analysis of Radiocarbon Dates

v1.4.2
GPL (>= 2)
Authors
Andrew Bevan [aut] (<https://orcid.org/0000-0001-7967-3117>), Enrico Crema [aut, cre] (<https://orcid.org/0000-0001-6727-5138>), R. Kyle Bocinsky [ctb], Martin Hinz [ctb], Philip Riris [ctb], Fabio Silva [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.