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 timescales (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(remotes)
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 (see https://github.com/ropensci/rnaturalearthhires).

Copy Link

Version

Install

install.packages('rice')

Monthly Downloads

781

Version

2.3.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Maarten Blaauw

Last Published

August 19th, 2026

Functions in rice (2.3.0)

C14tob2k

Find the b2k age(s) crossing a C14 age.
Delta14CtoC14

Transform Delta14C into C14 age
C14tocalBP

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

Calculate F14C values from C14 ages
F14CtopMC

Calculate pMC ages from F14C values.
as.one

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

Deprecated. Use C14toF14C instead
age.pMC

Deprecated. Use C14topMC instead.
b2ktocalBP

calculate cal BP ages from b2k ages
b2ktoBCAD

calculate cal BC/AD ages from b2k ages
b2ktoF14C

Find the F14C and error belonging to a b2k age.
b2ktopMC

Find the pMC and error belonging to a b2k age.
calBPtoBCAD

calculate cal BC/AD ages from cal BP ages
calBPtoF14C

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

calculate b2k ages from cal BP ages
FtoC

Calculate C14 ages from F14C values.
adjust.fractionation

Adjust a radiocarbon age for fractionation
adjust.background

Adjust a radiocarbon age for background measurements
b2ktoDelta14C

Find the Delta14C and error belonging to a b2k age.
b2ktoC14

Find the 14C age and error belonging to a b2k age.
F14CtoC14

Calculate C14 ages from F14C values.
as.bin

Combine multiple radiocarbon dates within bins
calBPtoC14

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

Calculate age ranges
calBPtoDelta14C

Find the Delta14C and error belonging to a cal BP age.
clean

Simulate removing contamination from a radiocarbon age
calBPtopMC

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

Plot individual calibrated dates.
draw.CF

Draw the asymmetric relationship between 14C and F14C
caldist

Calculate calibrated distribution
draw.Delta14C

Draw Delta14C and the calibration curve.
coverage

To be retired - coverage of one distribution by another.
contaminate

Simulate the impact of contamination on a radiocarbon age
hpd.overlap

Check whether hpds of two distributions overlap
l.calib

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

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

Draw contamination impacts
calibratable

Make a table of calibrated dates
draw.ccurve

Draw a calibration curve.
fromto

translate between timescales
fractions

Estimate a missing radiocarbon age from fractions
hpd

Calculate highest posterior density
howmuchC14

Amount of C14 particles in a sample
draw.dates

add calibrated distributions to a plot.
find.shells

Find nearby shell-derived dR values
overlap

The overlap between calibrated C14 dates
p.range

Probability of a date lying within a cal BP range
pMCtoF14C

Calculate pMC ages from F14C values.
pMCtoDelta14C

Transform pMC into Delta14C
map.dates

A map of 180k archaeological C-14 dates
map.shells

Plot regional shell-derived dR values
muck

Calculate the amount of muck/contamination to explain an observed C14 age
older

Find the probability of a calibrated date being older than a certain age
push.gamma

Add a gamma distribution to a calibrated date
pMC.age

Deprecated. Use pMCtoC14 instead.
pMCtoC14

Calculate C14 ages from pMC values.
shells.mean

Plot and summarize the dR values
shells

shells Data
younger

Find the probability of a calibrated distribution being of a certain age or younger than it
push.normal

Add a normal distribution to a calibrated date
weighted_means

Calculate the weighted mean of C14 ages
rice-package

rice: Radiocarbon Equations
spread

The spread among calibrated dates
rice

Radiocarbon Equations
smooth.curve

Smooth a calibration curve
span

The time span between two calibrated dates
point.estimates

Calculate a point estimate
pool

Test if a set of radiocarbon dates can be combined
shroud

shroud Data
radio

Listen to radiocarbon being measured
r.calib

return a random calendar age from a calibrated distribution
sim.date

Simulate a radiocarbon date
BCADtocalBP

calculate cal BP ages from cal BC/AD ages
C14toF14C

Calculate F14C values from C14 ages
C14toDelta14C

Transform C14 age(s) into Delta14C
BCADtopMC

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

Find the cal BCAD age(s) crossing a C14 age.
BCADtoF14C

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

Find the Delta14C and error belonging to a cal BC/AD age.
C14.cycle

Fill the atmosphere and ocean with 14C
BCADtob2k

calculate b2k from cal BC/AD ages
BCADtoC14

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

Deprecated. Use F14CtoC14instead
Delta14CtoF14C

Transform Delta14C into F14C
C14topMC

Calculate pMC values from C14 ages
Delta14CtopMC

Transform Delta14C into pMC
F14CtoDelta14C

Transform F14C into Delta14C