## File Name: mcmc_extract_samples_first_chain.R
## File Version: 0.04
mcmc_extract_samples_first_chain <- function(mcmcobj)
{
if ( ! is.matrix(mcmcobj) ){
dat.bugs <- mcmcobj[[1]]
} else {
dat.bugs <- mcmcobj
}
return(dat.bugs)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.