as_nlists: Coerce to nlists

View source: R/as-nlists.R

as_nlistsR Documentation

Coerce to nlists

Description

Coerce an R object to an nlists_object().

Usage

as_nlists(x, ...)

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

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

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

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

Arguments

x

An object.

...

Unused.

Value

An nlists object.

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

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

nlist documentation built on June 8, 2025, 9:41 p.m.