powered by
Gets the number of chains of an MCMC object.
nchains(x, ...)
An object.
Other arguments passed to methods.
An integer scalar of the number of chains.
Other MCMC dimensions: niters(), npars(), nsams(), nsims(), nterms()
niters()
npars()
nsams()
nsims()
nterms()
# NOT RUN { library(nlist) nchains(nlist(x = 1:2)) nlists <- nlists(nlist(x = c(2, 9)), nlist(x = c(1, 7))) nchains(nlists) nchains(split_chains(nlists)) # }
Run the code above in your browser using DataLab