as_mcmc: Coerce to mcmc Object

Description Usage Arguments Value Methods (by class) See Also Examples

View source: R/as-mcmc.R

Description

Coerce an R object to an mcmc object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as_mcmc(x, ...)

## S3 method for class 'mcmc.list'
as_mcmc(x, ...)

## S3 method for class 'nlist'
as_mcmc(x, ...)

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

Arguments

x

An object.

...

Unused.

Value

An mcmc object.

Methods (by class)

See Also

coda::as.mcmc()

Other mcmc: as_mcmc_list()

Examples

1
2
3
4
5
6
as_mcmc(as_mcmc_list(nlists(nlist(x = 2), nlist(x = 3))))
as_mcmc(nlist(x = matrix(1:6, 2)))
as_mcmc(nlists(
  nlist(x = matrix(1:6, 2)),
  nlist(x = matrix(3:8, 2))
))

nlist documentation built on Sept. 5, 2021, 6:05 p.m.