R/read.bugs.R

Defines functions read.bugs

Documented in read.bugs

read.bugs <- function(codafiles, ...){
    if(!is.R() && !requireNamespace("coda", quietly = TRUE))
        stop("package 'coda' is required to use this function")
    mcmc.list(lapply(codafiles, read.coda, 
                     index.file = file.path(dirname(codafiles[1]), "codaIndex.txt"), 
                     ...))
}

Try the R2WinBUGS package in your browser

Any scripts or data that you put into this service are public.

R2WinBUGS documentation built on June 24, 2024, 5:18 p.m.