Learn R Programming

ArchaeoPhases (version 2.1.0)

read_bcal: Read BCal Output

Description

Reads MCMC output.

Usage

read_bcal(file, ...)

# S4 method for character read_bcal(file, bin_width = 1, calendar = BP())

Value

An EventsMCMC object.

Arguments

file

A character string giving the name of the CSV file which the data are to be read from.

...

Currently not used.

bin_width

The bin width specified for the BCal calibration. Defaults to the BCal default of 1.

calendar

A aion::TimeScale object specifying the calendar (see aion::calendar()). It should be aion::BP() unless you change the default settings in 'BCal'.

Author

T. S. Dye, N. Frerebeau

References

Buck C. E., Christen J. A. & James G. N. (1999). BCal: an on-line Bayesian radiocarbon calibration tool. Internet Archaeology, 7. tools:::Rd_expr_doi("10.11141/ia.7.1").

See Also

utils::read.table()

Other read methods: as_coda(), as_events(), as_phases(), check, read_chronomodel, read_oxcal()

Examples

Run this code
if (requireNamespace("ArchaeoData", quietly = TRUE)) {
  ## Construct the path to the data
  path_output <- system.file("bcal", "fishpond.csv", package = "ArchaeoData")

  ## Import BCal Output
  (bcal <- read_bcal(path_output))
}

Run the code above in your browser using DataLab