Skip to content
Prev 319004 / 398503 Next

iterative extracting data from a list without keys

Re-read
?"["
(always better to read the docs before archives...)

and note in particular:

"[[ can be applied recursively to lists, so that if the single index i
is a vector of length p, alist[[i]] is equivalent to
alist[[i1]]...[[ip]] providing all but the final indexing results in a
list."

I agree -- it's terse. But it's accurate and complete.

-- Bert
On Thu, Mar 7, 2013 at 12:14 PM, Jeff Hollenbeck <hollenb at peak.org> wrote: