mix.ccurves | R Documentation |
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.
mix.ccurves( proportion = 0.5, cc1 = "IntCal20", cc2 = "Marine20", name = "mixed.14C", dir = c(), offset = c(0, 0), sep = "\t" )
proportion |
Proportion of the first calibration curve required. e.g., change to |
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., |
offset |
Any offset and error to be applied to |
sep |
Separator between fields (tab by default, "\t") |
The proportional contribution of each of both calibration curves has to be set.
A file containing the custom-made calibration curve, based on calibration curves cc1
and cc2
.
mix.ccurves() tmpdir <- tempdir() mix.ccurves(dir=tmpdir) # clean up: unlink(tmpdir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.