Simplifies an nlist object to an named numeric vector
where the names are the terms.
Arguments
- x
An nlist object.
Value
A named numeric vector of the values in x.
Examples
unlist_nlist(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