[R] applying a function recursively

Jim Lemon jim at bitwrit.com.au
Thu Jun 12 13:04:56 CEST 2008


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



More information about the R-help mailing list