readTrace - Read an MCMC log file.
| file : | String (pass by value) |
| Name of the file. | |
| separator/delimiter : | String (pass by value) |
| The field separator character. Values on each line of the file are separated by this character. If sep = "" the separator is 'white space', that is one or more spaces, tabs, newlines or carriage returns. | |
| burnin : | Probability (pass by value) |
| The fraction/number of samples to discard as burnin. | |
| Default : 0.25 | |
| thinning : | Natural (pass by value) |
| The frequency of samples to read, i.e., we will only used every n-th sample where n is defined by this argument. | |
| Default : 1 | |
| nruns : | Natural (pass by value) |
| The number of trace files with the same basename (i.e. the number of filenames with pattern |
|
| Default : 1 |
# read in a single log file as a vector of traces
traces = readTrace("out.log", burnin=0.5)
# read in two log files called 'out_run_1.log', 'out_run_2.log'
traces = readTrace("out.log", burnin=0.5, nruns=2)