sim.rings {coffee}R Documentation

Simulate the radiocarbon dating of tree-rings

Description

Simulate the dense radiocarbon dating of a tree or other deposit with exactly known yearly rings, and thus with gaps of exactly known age. The radiocarbon dates are assumed to have a degree of lab error and scatter. A (constant) offset can also be modelled.

Usage

sim.rings(
  name = "mytree",
  age.start = 1000,
  length = 400,
  gaps = 20,
  offset = 0,
  scatter = 1.05,
  error = 0.03,
  min.error = 15,
  tree.dir = "trees",
  sep = ",",
  cc = 1,
  postbomb = FALSE,
  ask = TRUE
)

Arguments

name

Name of the simulated tree-ring set. Defaults to "mytree".

age.start

Starting age of the simulated tree.

length

Length of the sequence (if gaps are given as constant). Could be set at e.g 400 for an oak, but many trees will not live as long so shorter sequences could also make sense.

gaps

How many calendar years there are between the dated rings. Can be set constant (one value, e.g. 20), or alternatively the gaps can be provided as a list of values.

offset

The ages could be offset by some constant value. Defaults to 0.

scatter

There is always a degree of scatter between measurements, and the amount of scatter can be modelled using, e.g., scatter=2*error. Set at 0 to model radiocarbon dates that are 100% faithful to the calibration curve (very unlikely!).

error

Laboratory error of the radiocarbon dates as percentage of the mean. Defaults to 0.02.

min.error

Minimum laboratory to be reported. Defaults to 10 (C-14 year).

tree.dir

The directory where the folders of the individual trees live. Defaults to tree.dir="trees".

sep

Separator for the fields in the .csv file. Defaults to a comma.

cc

Calibration curve to be used. Could be 1 (IntCal20; default), 2 (Marine20), 3 (SHCal20) or 4 (custom curve).

postbomb

Negative C-14 ages (younger than 0 cal BP or AD 1950) should be modelled using a postbomb curve. This could be 1 (northern-hemisphere region 1), 2 (NH region 2), 3 (NH region 3), 4 (southern hemisphere regions 1-2), or 5 (SH region 3).

ask

Ask if a folder may be made and files written into it

Value

A file containing 5 columns: the simulated calendar ages, the radiocarbon ages, their errors, the rings (starting with the youngest year and working backward in time), and the calibration curve to be used.

Author(s)

Maarten Blaauw, J. Andres Christen

Examples

  treedir <- tempdir()
  sim.rings("manyrings", age.start=1000, length=400, gaps=10, tree.dir=treedir)
  rings("manyrings", tree.dir=treedir)

[Package coffee version 0.3.0 Index]