c14_calibrate: Calibrate radiocarbon dates

View source: R/deprec-c14.R

c14_calibrateR Documentation

Calibrate radiocarbon dates

Description

A thin wrapper of rcarbon::calibrate() that returns calibrated dates as a single list rather than a 'CalDates“ object. Useful, for example, if you want to add a column of calibrated dates to an existing table with dplyr::mutate()

Usage

c14_calibrate(cra, error, ..., engine = c("rcarbon", "OxCal", "Bchron"))

Arguments

cra

A vector of uncalibrated radiocarbon ages.

error

A vector of standard errors associated with cra

...

Optional arguments passed to calibration function.

engine

Package to use for calibration, i.e. rcarbon::calibrate() ("rcarbon"), oxcAAR::oxcalCalibrate() ("OxCal"), or Bchron::BchronCalibrate() ("Bchron"). Default: "rcarbon".

Value

A list of cal objects.

See Also

Other tidy radiocarbon functions: c14_sum(), cal()

Examples

data("shub1_radiocarbon")
shub1_radiocarbon %>%
  dplyr::mutate(cal = c14_calibrate(cra, error))

joeroe/stratigraphr documentation built on May 17, 2023, 9:52 p.m.