R/mcmcapply.R

Defines functions mcmcapply

Documented in mcmcapply

mcmcapply <-
function(x, FUN, ...)
{
    if (!inherits(x, "mcmc.list"))
        stop("object class is not 'mcmc.list'")
    y <- as.matrix(x)
    if (missing(FUN))
        y else apply(y, 2, match.fun(FUN), ...)
}
datacloning/dclone documentation built on July 5, 2023, 5:26 a.m.