read_oxcal: Read OxCal Output

read_oxcalR Documentation

Read OxCal Output

Description

Reads MCMC output.

Usage

read_oxcal(file, ...)

## S4 method for signature 'character'
read_oxcal(file, calendar = CE())

Arguments

file

A character string giving the name of the CSV file which the data are to be read from.

...

Currently not used.

calendar

A aion::TimeScale object specifying the calendar (see calendar()). It should be CE() unless you change the default settings in 'OxCal'.

Value

An EventsMCMC object.

Author(s)

T. S. Dye, N. Frerebeau

References

Bronk Ramsey, C. (2009). Bayesian Analysis of Radiocarbon Dates. Radiocarbon, 51(1), 337-360. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1017/S0033822200033865")}.

See Also

utils::read.table()

Other read methods: as_coda(), as_events(), as_phases(), check, read_bcal(), read_chronomodel

Examples

if (requireNamespace("ArchaeoData", quietly = TRUE)) {
  ## Construct the path to the data
  path <- file.path("oxcal", "ksarakil")
  path_output <- system.file(path, "MCMC_Sample.csv", package = "ArchaeoData")

  ## Import OxCal Output
  (oxcal <- read_oxcal(path_output))
}

ArchaeoStat/ArchaeoPhases documentation built on Jan. 19, 2025, 2:33 p.m.