read_oxcal {ArchaeoPhases}R Documentation

Read MCMC output from OxCal

Description

Import a CSV file containing the output of the MCMC algorithm produced by OxCal.

Usage

read_oxcal(file, quiet = "no")

Arguments

file

Either a path to a CSV file, a connection, or the value clipboard() to read from the system clipboard. The CSV file can be compressed or plain. See read_csv for details.

quiet

One of "no" (default) to allow messages and warnings, "partial" to suppress messages and allow warnings, or "yes" to suppress messages and warnings.

Details

The read_oxcal function is built on read_csv. It aims to be fast and simple, and to return the marginal posteriors free of extraneous artifacts. The iteration column in the CSV file is discarded, as is an empty last column.

Value

An archaeophases_mcmc object containing the marginal posterior(s) as a data frame.

Author(s)

Thomas S. Dye, tsd@tsdye.online

See Also

read_csv

ImportCSV

Examples


## Not run: 
  # Import of MCMC output from OxCal
  data(Events)
  #To do for saving in csv file
  # write.csv(Events, "events.csv", row.names = FALSE)
  fishpond <- read_oxcal("events.csv")

  # Read from connection
  oxc <- read_oxcal("http://tsdye.online/AP/ox.csv")

## End(Not run)


[Package ArchaeoPhases version 1.5 Index]