https://github.com/cran/R2WinBUGS
Raw File
Tip revision: 4be60452b2c0aef50785e3d3827281ceaa36eb46 authored by Sibylle Sturtz on 12 September 2007, 00:00:00 UTC
version 2.1-6
Tip revision: 4be6045
read.bugs.R
read.bugs <- function(codafiles, ...){
    if(!is.R() && !require("coda"))
        stop("package 'coda' is required to use this function")
    mcmc.list(lapply(codafiles, read.coda, 
                     index.file = file.path(dirname(codafiles[1]), "codaIndex.txt"), 
                     ...))
}
back to top