Re: [R] Dynamic Programming in R

From: hadley wickham <>
Date: Sat 21 Jan 2006 - 01:06:43 EST

> > there are undoubtedly still situations where R may require an unacceptably
> large amount of memory overhead. Recursion is one, I
> believe.
> One can avoid unacceptably large amount of memory overhead when doing
> recursion in R: either by passing parameters "by reference" using package
> ref or by directly using environments.

Or by unrolling tail recursion into a loop, of course.

Hadley mailing list PLEASE do read the posting guide! Received on Sat Jan 21 01:15:54 2006

This archive was generated by hypermail 2.1.8 : Sat 21 Jan 2006 - 06:22:29 EST