[R] Dynamic Programming in R

hadley wickham h.wickham at gmail.com
Fri Jan 20 15:06:43 CET 2006

> > 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.


More information about the R-help mailing list