unlist_nlist: Flatten nlist Object

View source: R/unlist-nlist.R

unlist_nlistR 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)))

nlist documentation built on June 8, 2025, 9:41 p.m.