as_nlists: Coerce to nlists

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

View source: R/as-nlists.R

Description

Coerce an R object to an nlists_object().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

See Also

Other coerce: as_nlist()

Examples

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

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