read_chronomodel {ArchaeoPhases}R Documentation

Read MCMC output from ChronoModel

Description

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

Usage

read_chronomodel(file, decimal = ".", separator = ",", 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_delim for details.

decimal

Either "." (default) or ",", the two choices offered by ChronoModel.

separator

The character used to separate fields in the CSV file. Defaults to ",".

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_chronomodel function is built on read_delim. 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.

Value

An archaeophases_mcmc object containing the marginal posterior(s) from file.

Author(s)

Thomas S. Dye, tsd@tsdye.online

See Also

read_delim

ImportCSV

new_archaeophases_mcmc

Examples


  data(Events)
## Not run: 
  write.csv(Events, "events.csv", row.names=FALSE)
  events = read_chronomodel("events.csv", decimal = ".", separator = ",")
  # equivalent
  events = read_chronomodel("events.csv")


   rem <- read_chronomodel("http://tsdye.online/AP/cm/Chain_all_Events.csv")
 
## End(Not run)


[Package ArchaeoPhases version 1.5 Index]