Learn R Programming

nlist (version 0.4.0)

as_mcmc_list: Coerce to an mcmc.list Object

Description

Coerce an R object to an mcmc.list object.

Usage

as_mcmc_list(x, ...)

# S3 method for mcmc as_mcmc_list(x, ...)

# S3 method for nlist as_mcmc_list(x, ...)

# S3 method for nlists as_mcmc_list(x, ...)

Value

An mcmc.list object.

Arguments

x

An object.

...

Unused.

Methods (by class)

  • as_mcmc_list(mcmc): Coerce an mcmc object to an mcmc.list object.

  • as_mcmc_list(nlist): Coerce an nlist object to an mcmc.list object.

  • as_mcmc_list(nlists): Coerce an nlists object to an mcmc.list object.

See Also

Other mcmc: as_mcmc()

Examples

Run this code
as_mcmc_list(nlist(x = matrix(1:6, 2)))
as_mcmc_list(nlists(
  nlist(x = matrix(1:6, 2)),
  nlist(x = matrix(3:8, 2))
))

Run the code above in your browser using DataLab