read_bcal | R Documentation |
Import a CSV file containing the output of the MCMC algorithm produced by BCal.
read_bcal(file, bin_width = 1, quiet = "no")
file |
Either a path to a CSV file, a connection,
or the value |
bin_width |
The bin width specified for the BCal calibration. Defaults to the BCal default of 1. |
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_bcal
function is built on read_csv
.
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,
as are an empty last column and an empty last row.
An archaeophases_mcmc
object containing the marginal
posterior(s) as a data frame, or NULL if file
is not found.
Thomas S. Dye, tsd@tsdye.online
read_csv
ImportCSV
new_archaeophases_mcmc
## Not run: # Import of MCMC output from BCal data(Fishpond) write.csv(Fishpond, "fishpond_MCMC.csv", row.names=FALSE) fishpond <- read_bcal("fishpond_MCMC.csv") # Read from connection bc_1 <- read_bcal("http://tsdye.online/AP/bc-1.csv") bc_17 <- read_bcal("http://tsdye.online/AP/bc-17.csv", bin_width = 17) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.