Re: [R] applying a function recursively

From: Jim Lemon <>
Date: Thu, 12 Jun 2008 21:04:56 +1000

Georg Otto wrote:
> Hi,
> I have a question about applying a function recursively through a
> list. Suppose I have a list where the different elements have
> different levels of recursion:
> I understand that with a fixed number of recursion levels one can use
> lapply() in a nested way, but what if the numbers of recursion levels
> is not fixed or is different between the list elements as it is in my
> example?
Hi Georg,
Have a look at listBuilder and listCrawler in the crank package.

Jim mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 12 Jun 2008 - 12:42:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Jun 2008 - 14:30:40 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive