50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


Jonas Gregorio de Souza jonas.gregorio@gmail.com

install.packages("spDates")
devtools::install_github("jgregoriods/spDates")
library(spDates)
data(neof)
data(centers)
jericho <- centers[centers$Site=="Jericho",]
model <- modelDates(neof, "C14Age", jericho, method="ols")
plot(model)
summary(model)
                   Time-versus-distance  Distance-versus-time
Start date:          9782 +/- 11 cal BP   11115 +/- 21 cal BP
Speed of advance: 0.97 +/- 0.0073 km/yr 0.64 +/- 0.0063 km/yr
rmamodel <- modelDates(neof, "C14Age", jericho, method="rma")
plot(rmamodel)
rmabins <- modelDates(neof, "C14Age", jericho, binWidth=500)
plot(rmabins)
iter <- iterateSites(neof, "C14Age", centers, "Site", binWidths=500)
iter$results

        r p bin  n              site
1: 0.9640 0 500  9           Aswad**
2: 0.9516 0 500  9          Cayönü**
3: 0.9496 0 500  8     Çatal Höyük**
4: 0.9488 0 500  8 Shillourokambos**
5: 0.9469 0 500  9         Jericho**
6: 0.9451 0 500  9     Qermez Dere**
7: 0.9429 0 500 10        Abu Madi**
8: 0.9316 0 500  9     Abu Hureyra**
9: 0.9188 0 500 11        Ali Kosh**

plot(iter$model)
plot(iter$map)
library(rcarbon)
mydates <- read.csv("myfile.csv")
mydates$cal <- calibrate(mydates$C14Age, mydates$C14SD)
mydates$med <- medCal(mydates$cal)

Copy Link

Version

Install

install.packages('spDates')

Monthly Downloads

215

Version

1.1

License

MIT + file LICENSE

Maintainer

Jonas Gregorio de Souza

Last Published

October 9th, 2022

Functions in spDates (1.1)

sampleCalDates

Extract a single year estimate for ranges of calibrated dates with a probability given by the calibrated probability distribution.
iterateSites

Perform regression of dates versus distances from multiple potential origins in order to find the best model. It is also possible to specify multiple distances for the spatial binning of the dates.
filterDates

Filter archaeological site coordinates and dates, retaining only the earliest radiocarbon date per site.
land

Land polygons.
interpolateIDW

Interpolate using inverse distance weighting.
modelDates

Perform regression of archaeological dates on great circle distances from a hypothetical origin. Dates can be filtered to retain only the earliest dates per distance bins (Hamilton and Buchanan 2007). Bootstrap is executed to account for uncertainty in calibrated dates. Regression can be either reduced major axis or ordinary least squares. If using ordinary least squares, regression is performed both on time-versus-distance and on distance-versus-time.
plot.dateModel

Plot the results of the regression bootstrap on archaeological dates versus distances from a hypothetical origin, with fitted lines.
plot.dateMap

Plot a map with the results of the iteration over multiple sites, showing an interpolated surface of r values for the sites considered as potential origins.
neof

Radiocarbon dates and coordinates of 717 Neolithic sites in the Near East and Europe. Modified from Pinhasi et al. (2005). Only the earliest dates per site are included.
centers

Coordinates of 9 sites considered as potential centers of origin of the Neolithic expansion. Modified from Pinhasi et al. (2005).
summary.dateModel

Return summary statistics for a dateModel object.