Learn R Programming

ArchaeoPhases (version 1.8)

ImportCSV.BCal: Importing a BCal csv file

Description

Importing a csv file containing the output of the MCMC algorithm from the BCal software

Usage

ImportCSV.BCal(file, bin.width = NULL)

Arguments

file

Name of the CSV file containing the output of the MCMC algorithm.

bin.width

Bin width specified in a BCal project (note: bin.width does not have to be set if the BCal default bin width of 1 is used).

Value

A data frame containing a representation of the data in the CSV file

Examples

Run this code
# NOT RUN {
  # Import of MCMC generated by BCal and extracted in cal BP (the year of reference is 1950)
  data(Fishpond)
  write.csv(Fishpond, "fishpond_MCMC.csv", row.names = FALSE)
  Fishpond = ImportCSV.BCal("fishpond_MCMC.csv", bin.width = 1)
# }
# NOT RUN {
# }
# NOT RUN {
  # equivalent call
  Fishpond2 = ImportCSV("fishpond_MCMC.csv", dec = '.', sep=',', referenceYear = 1950,
                        rowToWithdraw = "last", bin.width = 1)
# }

Run the code above in your browser using DataLab