Learn R Programming

nlist (version 0.4.0)

unlist_nlist: Flatten nlist Object

Description

Simplifies an nlist object to an named numeric vector where the names are the terms.

Usage

unlist_nlist(x)

Value

A named numeric vector of the values in x.

Arguments

x

An nlist object.

See Also

as_nlist.numeric() and relist_nlist()

Examples

Run this code
unlist_nlist(nlist(y = 2, x = matrix(4:7, ncol = 2)))

Run the code above in your browser using DataLab