as_nlist: Coerce to nlist

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

View source: R/as-nlist.R

Description

Coerce an R object to an nlist_object().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
as_nlist(x, ...)

as.nlist(x, ...)

## S3 method for class 'numeric'
as_nlist(x, ...)

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

## S3 method for class 'data.frame'
as_nlist(x, ...)

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

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

as.nlists(x, ...)

Arguments

x

An object.

...

Unused.

Value

An nlist object.

Methods (by class)

See Also

Other coerce: as_nlists()

Examples

1
2
as_nlist(list(x = 1:4))
as_nlist(c(`a[2]` = 3, `a[1]` = 2))

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