Learn R Programming

nlist (version 0.1.1)

unlist.nlist: Flatten nlist Object

Description

Flatten nlist Object

Usage

# S3 method for nlist
unlist(x, recursive = TRUE, use.names = TRUE)

Arguments

x

An nlist object.

recursive

Ignored.

use.names

A flag specifying whether to preserve names.

Value

An named atomic numeric vector of the values in x.

See Also

unlist_nlist()

Examples

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

Run the code above in your browser using DataLab