Learn R Programming

nlist (version 0.4.0)

unlist.nlist: Flatten nlist Object

Description

Flatten nlist Object

Usage

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

Value

A named numeric vector of the values in x.

Arguments

x

An nlist object.

recursive

Ignored.

use.names

A flag specifying whether to preserve names.

See Also

unlist_nlist()

Examples

Run this code
unlist(nlist(y = 2, x = matrix(4:7, ncol = 2)))

Run the code above in your browser using DataLab