Re: [R] Dynamic Programming in R

From: hadley wickham <h.wickham_at_gmail.com>
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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html 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