R/unlist-nlist.R
unlist.nlist.Rd
Flatten nlist Object
# S3 method for class 'nlist' unlist(x, recursive = TRUE, use.names = TRUE)
An nlist object.
Ignored.
A flag specifying whether to preserve names.
A named numeric vector of the values in x.
unlist_nlist()
unlist(nlist(y = 2, x = matrix(4:7, ncol = 2))) #> y x[1,1] x[2,1] x[1,2] x[2,2] #> 2 4 5 6 7