Learn R Programming

rice (version 0.3.0)

decontaminate: Calculate the amount of contamination to explain an observed C14 age

Description

Given an observed and a 'true' radiocarbon age, calculate the amount of contamination required to explain the observed age.

Usage

decontaminate(y.obs, y.real, F14C = 1, decimals = 2, visualise = TRUE)

Value

The required contamination (as percentage), as well as a plot

Arguments

y.obs

the observed radiocarbon age

y.real

the 'true' radiocarbon age

F14C

the F14C of the contamination. Set at 1 for carbon of modern radiocarbon age, at 0 for 14C-free carbon, or anywhere inbetween.

decimals

Rounding of the output. Since details matter here, the default is to provide 5 decimals.

visualise

By default, a plot is made to visualise the real and observed F14C values, together with the inferred contamination.

Author

Maarten Blaauw

Examples

Run this code
  decontaminate(600, 2000, 1)

Run the code above in your browser using DataLab