calBP.14C: Find the 14C age and error belonging to a cal BP age.
Description
Given a calendar age, the calibration curve (default cc=1) is interpolated and the corresponding 14C age and error are returned.
Usage
calBP.14C(yr, cc = 1, postbomb = FALSE, rule = 1, ccdir = NULL)
Arguments
- yr
The cal BP year.
- cc
calibration curve for C14 (see caldist()
).
- postbomb
Whether or not to use a postbomb curve (see caldist()
).
- rule
How should R's approx function deal with extrapolation. If rule=1
, the default, then NAs are returned for such points and if it is 2, the value at the closest data extreme is used.
- ccdir
Directory of the calibration curves. Defaults to where the package's files are stored (system.file), but can be set to, e.g., ccdir="curves"
.
Details
Interpolation is used, and values outside the calibration curve are given as NA. For negative cal BP ages, a postbomb curve will have to be provided.