unlist_nlist {nlist}R Documentation

Flatten nlist Object

Description

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

Usage

unlist_nlist(x)

Arguments

x

An nlist object.

Value

A named numeric vector of the values in x.

See Also

as_nlist.numeric() and relist_nlist()

Examples

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

[Package nlist version 0.3.3 Index]