Reads MCMC output.
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,
getwd()
. Tilde-expansion is performed where supported. This can be a compressed file (seefile
).Alternatively,
file
can be a readable text-mode connection (which will be opened for reading if necessary, and if soclose
d (and hence destroyed) at the end of the function call). (Ifstdin()
is used, the prompts for lines may be somewhat confusing. Terminate input with a blank line or an EOF signal,Ctrl-D
on Unix andCtrl-Z
on Windows. Any pushback onstdin()
will be cleared before return.)file
can also be a complete URL. (For the supported URL schemes, see the ‘URLs’ section of the help forurl
.)- ...
Further arguments to be passed to
read.table
.- bin_width
The bin width specified for the BCal calibration. Defaults to the BCal default of 1.
Value
An EventsMCMC
object.
References
Buck C. E., Christen J. A. & James G. N. (1999). BCal: an on-line Bayesian radiocarbon calibration tool. Internet Archaeology, 7. doi:10.11141/ia.7.1 .
See also
Other read methods:
check
,
coda
,
coerce()
,
read_chronomodel
,
read_oxcal()
Examples
if (FALSE) {
## Import BCal Output
path_output <- system.file("bcal/output/rawmcmc.csv", package = "fasti")
(bcal <- read_bcal(path_output))
}