Learn R Programming

mcmcr (version 0.6.2)

as_nlists.mcmcr: Coerce to nlists

Description

Coerce an R object to an nlists_object().

Usage

# S3 method for mcmcr
as_nlists(x, ...)

Value

An nlists object.

Arguments

x

An object.

...

Unused.

Methods (by class)

  • as_nlists(list): Coerce list to nlists

  • as_nlists(mcmc): Coerce mcmc to nlists

  • as_nlists(mcmc.list): Coerce mcmc.list to nlists

  • as_nlists(nlist): Coerce nlist to nlists

See Also

Other coerce: as_nlist()

Examples

Run this code
as_nlists(list(nlist(x = c(1, 5)), nlist(x = c(2, 3)), nlist(x = c(3, 2))))

Run the code above in your browser using DataLab