Collapses an MCMC object's chains into a single chain.

# S3 method for class 'nlists'
collapse_chains(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

The modified object with one chain.

See also

Examples

collapse_chains(nlist(x = 2))
#> $x
#> [1] 2
#> 
#> an nlist object with 1 numeric element