unlist_nlist: Flatten nlist Object

Description Usage Arguments Value See Also Examples

View source: R/unlist-nlist.R

Description

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

Usage

1

Arguments

x

An nlist object.

Value

A named numeric vector of the values in x.

See Also

as_nlist.numeric() and relist_nlist()

Examples

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

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