This repository contains the data and code for our paper:
Darcy Bird , Lux Miranda , Marc Vander Linden , Robinson, Erick , R. Kyle Bocinsky , Chris Nicholson , José M. Capriles , Judson Byrd Finley , Eugenia M. Gayo , Adolfo Gil , Jade d’Alpoim Guedes , Julie A. Hoggarth , Andrea Kay , Emma Loftus , Umberto Lombardo , Madeline Mackie , Alessio Palmisano , Steinar Solheim , Robert L. Kelly, and Jacob Freeman .
(2021) p3k14c: A synthetic global database of archaeological radiocarbon dates.
The :file_folder: vignettes/articles directory contains:
p3k14c.html
, suitable for reading (the code is replaced by figures and tables in this file).The simplest way to explore the text, code and data is to click on binder to open an instance of RStudio in your browser, which will have the compendium files ready to work with. Binder uses (rocker-project.org)rocker − project.orgDocker images to ensure a consistent and reproducible computational environment. These Docker images can also be used locally.
You can download the compendium as a zip from from this URL: main.zip. After unzipping, open the Proj
file in RStudio, and run devtools::install()
to ensure you have the packages this analysis depends on (also listed in the DESCRIPTION file). Then open p3k14c.Rmd
and knit to produce the paper in PDF format.
You can install the released version of p3k14c from Github with:
# install.packages("remotes")
remotes::install_github("people3k/p3k14c@1.0.0")
You are required to have a copy of the raw p3k14c dataset, available through tDAR at https://doi.org/10.48512/XCV8459173. Clone this repository, then place the p3k14c_raw.csv
at ../p3k14c-data/p3k14c_raw.csv
, relative to the working director of the cloned repository.
You can do so thus:
git clone https://github.com/people3k/p3k14c
cd p3k14c
You can compile the research compendium through the terminal:
R -e "rmarkdown::render('vignettes/articles/p3k14c.Rmd', output_dir = 'vignettes/articles')"
or, within R itself:
rmarkdown::render('vignettes/articles/p3k14c.Rmd', output_dir = 'vignettes/articles')
Once the p3k14c package is installed, you can access the scrubbed/fuzzed p3k14c via R:
library(p3k14c)
p3k14c::p3k14c_data
Please cite this compendium as:
Bocinsky, R. Kyle, Darcy Bird, and Erick Robinson, (2020). Compendium of R code and data for p3k14c: A synthetic global database of archaeological radiocarbon dates. Accessed TODAY′SDATE.
We welcome contributions from everyone. Before you get started, please see our contributor guidelines. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
This compendium was created using the rrtools
package by Ben Marwick, which is ✨ pure magic ✨ for doing reproducible research.
Please note that the p3k14c project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.