mix.ccurves: Build a custom-made, mixed calibration curve.

View source: R/IntCal.R

mix.ccurvesR Documentation

Build a custom-made, mixed calibration curve.

Description

If two curves need to be ‘mixed’ to calibrate, e.g. for dates of mixed terrestrial and marine carbon sources, then this function can be used. The curve will be saved, together with the main calibration curves, in a temporary directory. This temporary directory then has to be specified in further commands, e.g. for rbacon: Bacon(, ccdir=tmpdr) (see examples). It is advisable to make your own curves folder and have ccdir point to that folder.

Usage

mix.ccurves(
  proportion = 0.5,
  cc1 = "IntCal20",
  cc2 = "Marine20",
  name = "mixed.14C",
  dir = c(),
  offset = c(0, 0),
  sep = "\t"
)

Arguments

proportion

Proportion of the first calibration curve required. e.g., change to proportion=0.7 if cc1 should contribute 70% (and cc2 30%) to the mixed curve.

cc1

The first calibration curve to be mixed. Defaults to the northern hemisphere terrestrial curve IntCal20.

cc2

The second calibration curve to be mixed. Defaults to the marine curve IntCal20.

name

Name of the new calibration curve.

dir

Name of the directory where to save the file. Since R does not allow automatic saving of files, this points to a temporary directory by default. Adapt to your own folder, e.g., dir="~/Curves" or in your current working directory, dir=".".

offset

Any offset and error to be applied to cc2 (default 0 +- 0).

sep

Separator between fields (tab by default, "\t")

Details

The proportional contribution of each of both calibration curves has to be set.

Value

A file containing the custom-made calibration curve, based on calibration curves cc1 and cc2.

Examples

mix.ccurves()
tmpdir <- tempdir()
mix.ccurves(dir=tmpdir)
# clean up:
unlink(tmpdir)

IntCal documentation built on July 12, 2022, 1:05 a.m.