Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summedCalibratorWrapper

Quick calibration of dates, without the need to choose a date range or generate a CalArray.


Description

Wrapper function that easily generates and plots an SPD, at the cost of some user control.

Usage

summedCalibratorWrapper(data, calcurve = intcal20, plot = TRUE)

Arguments

data

A dataframe of 14C dates. Requires 'age' and 'sd'.

calcurve

A calibration curve object. Choose from intcal20 (default), shcal20, intcal13 or shcal13.

plot

By default (TRUE) will plot the SPD.

Details

Function to easily plot a calibrated Summed Probability Distribution from 14C dates. Automatically chooses a sensible date range and interpolation increments. Uses these to generate CalArray internally.

Value

Returns a single-column data frame of SPD probabilities. Row names are the calendar years.

Examples

# SPD of two 14C dates, calibrated through intcal20 (default)
	data <- data.frame(
		age=c(6562,7144),
		sd=c(44,51)
		)
	x <- summedCalibratorWrapper(data)

	# one date is not 14C
	data <- data.frame(
		age = c(6562,7144),
		sd = c(44,51),
		datingType = c('14C','TL')
		)
	x <- summedCalibratorWrapper(data)

ADMUR

Ancient Demographic Modelling Using Radiocarbon

v1.0.3
GPL-3
Authors
Adrian Timpson [aut, cre] (<https://orcid.org/0000-0003-0292-8729>)
Initial release
2021-03-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.