Function for generating a vector of median calibrated dates for each each bin.
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.
Returns
A vector of median dates in cal BP
Examples
## Not run:#Load EUROEVOL Datadata(euroevol)#Subset Danish Datesdenmark <- subset(euroevol,Country=="Denmark")#Calibrate and BindenmarkDates <- 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 binbinMed(x=denmarkDates,bins=denmarkBins)## End(Not run)