InterpolateCalibrationCurve {carbondate} | R Documentation |
Interpolate a calibration curve at a set of calendar ages
Description
Interpolate a calibration curve at a set of calendar ages
Usage
InterpolateCalibrationCurve(
new_calendar_ages_BP,
calibration_curve,
F14C_outputs = NA
)
Arguments
new_calendar_ages_BP |
A scalar or vector containing calendar ages (in cal yr BP) at
which to interpolate the values (both the means and uncertainties) of the given calibration curve.
If not provided (and |
calibration_curve |
A dataframe which must contain one column |
F14C_outputs |
|
Value
A new dataframe with entries for the interpolated c14_age
, and
c14_sig
, f14c
and f14c_sig
values at the calendar_age_BP
values that were
given in new_calendar_ages_BP
.
Examples
# Interpolate intcal20 at a single calendar age. Generates both 14C ages and F14C scales.
InterpolateCalibrationCurve(51020, intcal20)
# Interpolate intcal20 at two calendar ages. Generates F14C estimates only.
InterpolateCalibrationCurve(c(51017, 51021), intcal20, TRUE)
# Interpolate intcal20 at two calendar ages. Generate 14C age estimates (cal yr BP) only.
InterpolateCalibrationCurve(c(51017, 51021), intcal20, FALSE)
# Interpolate intcal20 at every integer calendar age within the range of dates
# (for intcal20 this is 0 to 55000 cal yr BP), and create estimates for both radiocarbon scales.
cal_curve <- InterpolateCalibrationCurve(NA, intcal20)