Learn R Programming

ananke (version 0.1.0)

c14_combine: Combine 14C

Description

Combines radiocarbon dates.

Usage

c14_combine(values, errors, ...)

# S4 method for numeric,numeric c14_combine(values, errors, groups = NULL)

Value

A data.frame with the following columns:

groupsGroup names
agesCombined 14C ages
errorsCombined 14C standard deviations
chi2Chi-squared test statistic
pChi-squared test p-value

Arguments

values

A numeric vector giving the BP ages to be calibrated.

errors

A numeric vector giving the standard deviation of the ages to be calibrated.

...

Currently not used.

groups

A factor in the sense that as.factor(groups) defines the the groups to combine with. If NULL (the default), all dates are combined. NAs will be treated as isolated dates.

Author

N. Frerebeau

References

Ward, G. K. and Wilson, S. R. (1978). Procedures for Comparing and Combining Radiocarbon Age Determinations: A Critique. Archaeometry 20(1): 19‑31. tools:::Rd_expr_doi("10.1111/j.1475-4754.1978.tb00208.x").

See Also

Other radiocarbon tools: F14C, c14_calibrate(), c14_curve(), c14_ensemble(), c14_plot, c14_sample(), c14_spd(), c14_uncalibrate(), rec_plot

Examples

Run this code
## Replicate Ward and Wilson (1978), p. 28
polach1972 <- data.frame(
  samples = c("ANU-7", "ANU-7", "ANU-7", "W-1571", "ANU-5",
              "C-800", "L-698D", "FSU-3", "Tx-44"),
  ages = c(14550, 15000, 13700, 14650, 11700, 10860, 11840, 11245, 10700),
  errors = c(270, 600, 300, 500, 260, 410, 100, 450, 210)
)

c14_combine(
  values = polach1972$ages,
  errors = polach1972$errors,
  groups = polach1972$samples
)

Run the code above in your browser using DataLab