flat.list | R Documentation |
Construct a flat list (a list with no list elements).
flat.list(...)
... |
objects, possible named. |
rapply
is used to find each non-list element, then is assigned
into the next element of a list. As the non-list elements are being recursed
through, the names are taken and assigned to the return list.
A list.
x <- list(a = 1:5, list(list(b = 6:10), c = 11:15), list(d = exp(-4)))
print(x)
flat.list(x)
flat.list(x, e = "testing")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.