-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
54 lines (40 loc) · 2.44 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# rintchron: R interface to IntChron <a href='https://rintchron.joeroe.io'><img src='man/figures/logo.svg' align="right" style="float: right; height: 139px" /></a>
<!-- badges: start -->
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![CRAN status](https://www.r-pkg.org/badges/version/rintchron)](https://CRAN.R-project.org/package=rintchron)
[![R-CMD-check](https://github.com/joeroe/rintchron/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/joeroe/rintchron/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
**rintchron** provides an R interface to [IntChron](https://intchron.org), an indexing service and exchange format for radiocarbon dates and other chronological data ([Bronk Ramsey et al. 2019](https://doi.org/10.1017/RDC.2019.21)).
It includes a user friendly interface for querying databases indexed by IntChron, as well as lower level functions for interacting directly with the [IntChron API](https://intchron.org/schema).
For an introduction to querying IntChron's databases see the [basic usage vignette](https://rintchron.joeroe.io/articles/rintchron).
For advanced users, low level functions for interacting with the IntChron API directly are described in the [IntChron API vignette](https://rintchron.joeroe.io/articles/intchron_api).
## Installation
rintchron has not yet been released on CRAN.
You can install the development version from GitHub using the [remotes](https://remotes.r-lib.org/) package:
```{r intchron-install, eval=FALSE}
# install.package("remotes")
remotes::install_github("joeroe/rintchron")
```
## Usage
Use [`intchron()`](https://rintchron.joeroe.io/reference/intchron) to query databases indexed by IntChron.
You can refine the query by database (use `intchron_hosts()` to see what's available) and optionally by country and site.
For example, to download records from Jordan in the ORAU and NERC Radiocarbon Facility databases:
```{r intchron-basic}
library("rintchron")
# List available databases
intchron_hosts()
# Query IntChron
intchron(c("oxa", "nrcf"), countries = "Jordan")
```