Skip to content
Prev 42817 / 398506 Next

Extracting multiple elements from a list

[] works on a list and extracts multiple elements.  However, that is not 
it seems what you want, rather, unions of elements of elements of lists.
That is a pretty unusual need, and perhaps you could explain you you need 
it.

Andy's solution still need something like

do.call("c",  lapply(alist, function(x) x$vec))

but then it *is* unions of elements of elements of lists.
On Thu, 15 Jan 2004, Liaw, Andy wrote: