Learn R Programming

nlist (version 0.1.1)

as.nlists: Coerce to nlists

Description

Coerce an R object to an nlists_object().

Usage

as.nlists(x, ...)

# S3 method for list as.nlists(x, ...)

# S3 method for nlist as.nlists(x, ...)

Arguments

x

An R object.

...

Unused

Value

An nlists object.

Methods (by class)

  • list: Coerce list to nlists

  • nlist: Coerce nlist to nlists

Examples

Run this code
# NOT RUN {
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