Learn R Programming

rice (version 0.3.0)

l.calib: Find the calibrated probability of a calendar age for a 14C date.

Description

Find the calibrated probability of a cal BP age for a radiocarbon date. Can handle either multiple calendar ages for a single radiocarbon date, or a single calendar age for multiple radiocarbon dates.

Usage

l.calib(
  yr,
  y,
  er,
  cc = rintcal::ccurve(1, FALSE),
  normal = TRUE,
  as.F = FALSE,
  t.a = 3,
  t.b = 4
)

Value

The calibrated probability of a calendar age for a 14C age

Arguments

yr

The cal BP year.

y

The radiocarbon date's mean.

er

The radiocarbon date's lab error.

cc

calibration curve for the radiocarbon date(s) (see the rintcal package).

normal

Use the normal distribution to calibrate dates (default TRUE). The alternative is to use the t model (Christen and Perez 2016).

as.F

Whether or not to calculate ages in the F14C realm. Defaults to as.F=FALSE, which uses the C14 realm.

t.a

Value a of the t distribution (defaults to 3).

t.b

Value b of the t distribution (defaults to 4).

Author

Maarten Blaauw

Details

The function cannot deal with multiple calibration curves if multiple calendar years or radiocarbon dates are entered.

Examples

Run this code
  l.calib(100, 130, 20)
  l.calib(100:110, 130, 20) # multiple calendar ages of a single date
  l.calib(100, c(130,150), c(15,20)) # multiple radiocarbon ages and a single calendar age

Run the code above in your browser using DataLab