View source: R/calibration-functions.R
CalibrateAge | R Documentation |
Calibrate a set of 14C ages in a dataframe using the BChron package.
CalibrateAge(
df,
age.14C = "age.14C",
age.14C.se = "age.14C.se",
curve = "intcal20",
return.type = "df",
offset = NULL
)
df |
dataframe of two columns giving the 14C ages and their standard error. |
age.14C |
character; name of the column in |
age.14C.se |
character; name of the column in |
curve |
character; name pf the calibration curve to use; defaults to |
return.type |
character; signal the amount of returned information:
return only the ammended dataframe ( |
offset |
character; name of an optional additional column in |
This function is a wrapper for BchronCalibrate
.
A dataframe or list.
Andrew Dolman
BchronCalibrate
SummariseEmpiricalPDF
# With defaults
dat <- data.frame(age.14C = c(2000, 20000),
age.14C.se = c(100, 200))
CalibrateAge(dat)
# Change the calibration
CalibrateAge(dat, curve = "marine13")
# Return the PDFs
cal.lst <- CalibrateAge(dat, curve = "marine13", return = "lst")
with(cal.lst[[2]][[1]][[1]], {plot(ageGrid, densities)})
# Use different column names
dat <- data.frame(radiocarbon.age = c(2000, 20000),
se = c(100, 200))
CalibrateAge(dat, age.14C = "radiocarbon.age", age.14C.se = "se")
## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.