Learn R Programming

ArchaeoPhases (version 1.8)

read_oxcal: 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.

Value

An archaeophases_mcmc object containing the marginal posterior(s) as a data frame, or NULL if file is not found.

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.

See Also

read_csv

ImportCSV

Examples

Run this code
# NOT RUN {
# }
# 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")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab