Create a mixed calibration curved

mix_curves(
  proportion = 0.5,
  cc1 = 1,
  cc2 = 2,
  name = "mixed.14C",
  dir = file.path(getwd(), "ccurves"),
  quiet = FALSE
)

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=".".

quiet

Boolean to hide status messages.

Examples

# Curve for neotropics
ageR::mix_curves(0.5, 1, 3, name = "neotropics.14C")
#> --------------------------------------------------------------------------------
#> |                         Mixed curved: 50/50 created.                         |
#> --------------------------------------------------------------------------------
# Curve for coastline (Northern hemisphere)
ageR::mix_curves(0.7, 1, 2, name = "nh_coastal.14C")
#> --------------------------------------------------------------------------------
#> |                         Mixed curved: 70/30 created.                         |
#> --------------------------------------------------------------------------------
# Curve for coastline (Southern hemisphere)
ageR::mix_curves(0.7, 3, 2, name = "sh_coastal.14C")
#> --------------------------------------------------------------------------------
#> |                         Mixed curved: 70/30 created.                         |
#> --------------------------------------------------------------------------------
# Clean output
unlink("ccurves", TRUE, TRUE)