read_chronomodel {ArchaeoPhases} | R Documentation |
Import a CSV file containing the output of the MCMC algorithm produced by ChronoModel.
read_chronomodel(file, decimal = ".", separator = ",", quiet = "no")
file |
Either a path to a CSV file, a connection,
or the value |
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. |
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.
An archaeophases_mcmc
object containing the marginal
posterior(s) from file, or NULL if file
is not found.
Thomas S. Dye, tsd@tsdye.online
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)