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

binMed

Computes the median date of each bin


Description

Function for generating a vector of median calibrated dates for each each bin.

Usage

binMed(x, bins, verbose = TRUE)

Arguments

x

A CalDates class object.

bins

vector containing the bin names associated with each radiocarbon date. Can be generated using binPrep.

verbose

A logical variable indicating whether extra information on progress should be reported. Default is TRUE.

Value

A vector of median dates in cal BP

See Also

Examples

## Not run: 
#Load EUROEVOL Data
data(euroevol)
#Subset Danish Dates
denmark <- subset(euroevol,Country=="Denmark")
#Calibrate and Bin
denmarkDates <- calibrate(x=denmark$C14Age,errors=denmark$C14SD) 
denmarkBins <- binPrep(sites=denmark$SiteID,ages=denmark$C14Age,h=200) #200 years bin size
#Compute median date for each bin
binMed(x=denmarkDates,bins=denmarkBins)

## End(Not run)

rcarbon

Calibration and Analysis of Radiocarbon Dates

v1.4.2
GPL (>= 2)
Authors
Andrew Bevan [aut] (<https://orcid.org/0000-0001-7967-3117>), Enrico Crema [aut, cre] (<https://orcid.org/0000-0001-6727-5138>), R. Kyle Bocinsky [ctb], Martin Hinz [ctb], Philip Riris [ctb], Fabio Silva [ctb]
Initial release

We don't support your browser anymore

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