estimateDataDomain: Estimates the calendar date domain of a 14C dataset

View source: R/functions.R

estimateDataDomainR Documentation

Estimates the calendar date domain of a 14C dataset

Description

Estimates the approximate date range of a 14C dataset, in calendar time

Usage

estimateDataDomain(data, calcurve)

Arguments

data

A dataframe of 14C dates. Requires 'age' and 'sd', and at least one of 'site' and 'phase'. Optional 'datingType' to include '14C' and anything else.

calcurve

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

Details

Since dates are derived from normal (or log normal) distributions, they have no absolute cut off point. However, in practice the tail of a PDF rapidly becomes vanishingly small, so a date range can be estimated using an arbitrarily large interval of the cumulative distribution.

Value

Returns a vector of two calendar dates BP.

Examples


# a single date within the 14C range 5000 to 10000
data <- data.frame(
		age = round(runif(1,5000,10000)), 
		sd = 3,
		datingType = '14C'
		)
estimateDataDomain(data, calcurve=intcal20)

# 50 dates within the 14C range 5000 to 10000
data <- data.frame(
		age = round(runif(50,5000,10000)), 
		sd = rep(50,50),
		datingType = rep('14C',50)
		)
estimateDataDomain(data, calcurve=intcal20)


AdrianTimpson/ADMUR documentation built on July 2, 2024, 8:39 p.m.