as_mcmc function

Return a CODA mcmc object with the required samples