read_chronomodel {ArchaeoPhases} | R Documentation |
Read ChronoModel Output
Description
Reads MCMC output.
Usage
read_chronomodel_events(file, ...)
read_chronomodel_phases(file, ...)
## S4 method for signature 'character'
read_chronomodel_events(file, calendar = CE(), sep = ",", dec = ".")
## S4 method for signature 'character'
read_chronomodel_phases(file, calendar = CE(), sep = ",", dec = ".")
Arguments
file |
the name of the file which the data are to be read from.
Each row of the table appears as one line of the file. If it does
not contain an absolute path, the file name is
relative to the current working directory,
Alternatively,
|
... |
Further arguments to be passed to |
calendar |
A |
sep |
the field separator character. Values on each line of the
file are separated by this character. If |
dec |
the character used in the file for decimal points. |
Value
An EventsMCMC
or a PhasesMCMC
object.
Author(s)
T. S. Dye, N. Frerebeau
References
Lanos, Ph., Philippe, A. & Dufresne, Ph. (2015). Chronomodel: Chronological Modeling of Archaeological Data using Bayesian Statistics. URL: https://chronomodel.com/.
See Also
Other read methods:
as_coda()
,
as_events()
,
as_phases()
,
check
,
read_bcal()
,
read_oxcal()
Examples
if (requireNamespace("ArchaeoData", quietly = TRUE)) {
## Import ChronoModel Output
path <- "chronomodel/ksarakil"
## Events
path_events <- system.file(path, "Chain_all_Events.csv", package = "ArchaeoData")
(chrono_events <- read_chronomodel_events(path_events))
## Phases
path_phases <- system.file(path, "Chain_all_Phases.csv", package = "ArchaeoData")
(chrono_phases <- read_chronomodel_phases(path_phases))
}