Learn R Programming

nlist (version 0.1.1)

unlist_nlist: Flatten nlist Object

Description

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

Usage

unlist_nlist(x)

Arguments

x

An nlist object.

Value

An named atomic numeric vector of the values in x.

See Also

as.nlist.numeric() and relist_nlist()

Examples

Run this code
# NOT RUN {
unlist_nlist(nlist(y = 2, x = matrix(4:7, ncol = 2)))
# }

Run the code above in your browser using DataLab