Learn R Programming

rice

Radiocarbon Calibration Equations

Radiocarbon is widely used for dating a range of archaeological and geographical objects. This package provides a number of functions to calibrate radiocarbon dates, including ones to transfer values between different realms (F14, D14C, pMC, C14 ages), to simulate the impacts of contamination, and to plot one or more calibrated dates.

Please check out the vignettes folder for a tutorial. In short, install the package from github, load it and run the two main functions:

require(devtools)
install_github("Maarten14C/rice")
library(rice)
calibrate(2450,20)
contaminate(55000, 100, .05, 1)
draw.contamination()

Installation

To use high-resolution maps, install the rnaturalearthhires package from GitHub (also install devtools if you haven't already):

install.packages("devtools")
devtools::install_github("ropensci/rnaturalearthhires")

Copy Link

Version

Install

install.packages('rice')

Monthly Downloads

1,218

Version

1.1.1

License

GPL (>= 2)

Maintainer

Maarten Blaauw

Last Published

April 9th, 2025

Functions in rice (1.1.1)

C14toBCAD

Find the BCAD age(s) crossing a C14 age.
C14toD14C

Transform C14 age(s) into D14C
calBPtoF14C

Find the F14C and error belonging to a cal BP age.
C14toF14C

Calculate F14C values from C14 ages
F14CtoC14

Calculate C14 ages from F14C values.
D14CtoF14C

Transform D14C into F14C
D14CtoC14

Transform D14C into C14 age
F14CtoD14C

Transform F14C into D14C
calBPtopMC

Find the pMC and error belonging to a cal BP age.
howmanyC14

Amount of C14 particles in a sample
as.one

Combine multiple radiocarbon dates assuming they belong to the same single year
draw.dates

add calibrated distributions to a plot.
calBPtoD14C

Find the pMC and error belonging to a cal BP age.
D14CtopMC

Transform D14C into pMC
calBPtoC14

Find the 14C age and error belonging to a cal BP age.
age.F14C

To be deprecated. Use C14.F14C instead
calBPtoBCAD

calculate BC/AD ages from cal BP ages
C14topMC

Calculate pMC values from C14 ages
C14tocalBP

Find the calBP age(s) crossing a C14 age.
calibrate

Plot individual calibrated dates.
find.shells

Find nearby shell-derived dR values
pMC.age

To be deprecated. Use pMCtoC14 instead.
hpd

Calculate highest posterior density
contaminate

Simulate the impact of contamination on a radiocarbon age
draw.D14C

Draw d14C and the calibration curve.
draw.ccurve

Draw a calibration curve.
draw.contamination

Draw contamination impacts
overlapping

The overlap between calibrated C14 dates
p.range

Probability of a date lying within a cal BP range
pMCtoD14C

Transform F14C into D14C
map.shells

Plot regional shell-derived dR values
l.calib

Find the calibrated probability of a calendar age for a 14C date.
age.pMC

To be deprecated. Use C14topMC instead.
as.bin

Combine multiple radiocarbon dates within bins
caldist

Calculate calibrated distribution
muck

Calculate the amount of muck/contamination to explain an observed C14 age
calib.t

Comparison dates calibrated using both the t distribution (Christen and Perez 2009) and the normal distribution.
pMCtoF14C

Calculate pMC ages from F14C values.
clean

Simulate removing contamination from a radiocarbon age
shroud

shroud Data
older

Find the probability of a calibrated date being older than a certain age
younger

Find the probability of a calibrated date being of a certain age or younger than it
shells.mean

Plot and summarize the dR values
point.estimates

Calculate a point estimate
fractions

Estimate a missing radiocarbon age from fractions
push.normal

Add a normal distribution to a calibrated date
push.gamma

Add a gamma distribution to a calibrated date
r.calib

return a random calendar age from a calibrated distribution
fromto

translate between realms
rice-package

rice: Radiocarbon Equations
pool

Test if a set of radiocarbon dates can be combined
pMCtoC14

Calculate C14 ages from pMC values.
rice

Radiocarbon Equations
smooth.curve

Smooth a calibration curve
span

The time span between two calibrated dates
shells

shells Data
spread

The spread among calibrated dates
weighted_means

Calculate the weighted mean of C14 ages
BCADtoF14C

Find the F14C and error belonging to a BC/AD age.
BCADtocalBP

calculate cal BP ages from BC/AD ages
F14C.age

To be deprecated. Calculate C14 ages from F14C values.
BCADtopMC

Find the pMC and error belonging to a BC/AD age.
BCADtoD14C

Find the pMC and error belonging to a cal BP age.
BCADtoC14

Find the 14C age and error belonging to a BC/AD age.
F14CtopMC

Calculate pMC ages from F14C values.