Calibrates radiocarbon ages.
Usage
c14_calibrate(values, errors, ...)
# S4 method for class 'numeric,numeric'
c14_calibrate(
values,
errors,
curves = "intcal20",
names = NULL,
positions = NULL,
reservoir_offsets = 0,
reservoir_errors = 0,
from = 55000,
to = 0,
resolution = 1,
normalize = TRUE,
F14C = FALSE,
method = c("student", "normal"),
dfs = 100,
drop = TRUE,
eps = 1e-06,
verbose = getOption("ananke.verbose")
)Arguments
- values
A
numericvector giving the BP ages or F14C values to be calibrated (conventional ages).- errors
A
numericvector giving the errors associated to the values to be calibrated.- ...
Currently not used.
- curves
A
charactervector specifying the calibration curve to be used. Different curves can be specified per sample.- names
A
charactervector specifying the names of the samples (e.g. laboratory codes).- positions
A
numericvector giving the position values (e.g. depths) for each age.- reservoir_offsets
A
numericvector giving the offset values for any marine reservoir effect (defaults to 0; i.e. no offset).- reservoir_errors
A
numericvector giving the offset value errors for any marine reservoir effect (defaults to 0; i.e. no offset).- from
length-one
numericvector specifying the earliest data to calibrate for, in cal. BP years.- to
A length-one
numericvector specifying the latest data to calibrate for, in cal. BP years.- resolution
A length-one
numericvector specifying the temporal resolution (in years) of the calibration.- normalize
A
logicalscalar: should the calibration be normalized?- F14C
A
logicalscalar: should the calibration be carried out in F14C space? IfTRUE,valuesmust be expressed as F14C.- method
A
characterstring specifying the distribution assumed for the 14C ages. It must be one of "student" (the default) or "normal. Only used ifF14CisFALSE.- dfs
A
charactervector giving the degrees-of-freedom values for the student t-distribution associated with the calibration calculation. Only used ifmethodis "student".- drop
A
logicalscalar: should years with zero probability be discarded? IfTRUE(the default), results in a narrower time range.- eps
A length-one
numericvalue giving the cutoff below which calibration values will be removed.- verbose
A
logicalscalar: should extra information be reported (e.g. warning message for dates out of calibration range)?
Value
A CalibratedAges object.
Note
Adapted from Bchron BchronCalibrate() by Andrew Parnell and
rcarbon calibrate() by Andrew Bevan and Enrico Crema.
References
Bronk Ramsey, C. (2008). Radiocarbon Dating: Revolutions in Understanding. Archaeometry, 50:249-275. doi:10.1111/j.1475-4754.2008.00394.x .
See also
Other radiocarbon tools:
F14C,
c14_combine(),
c14_curve(),
c14_ensemble(),
c14_plot,
c14_sample(),
c14_spd(),
c14_uncalibrate(),
rec_plot
Examples
## Calibrate a single date
cal <- c14_calibrate(300, 20)
plot(cal, panel.first = graphics::grid())
## Calibrate multiple dates
cal <- c14_calibrate(
values = c(5000, 4500),
errors = c(45, 35),
names = c("X", "Y")
)
plot(cal, panel.first = graphics::grid())
# \donttest{
## Out of 14C range?
out <- c14_calibrate(130, 20)
plot(out)
# }