Re: [R] optimizing speed of calculation (recursive product)

2008-09-03 Thread Uwe Ligges
Wolfgang Raffelsberger wrote: Dear list, I'm wondering how to optimize functions/processes like the one shown below (which simplifies something we're trying to do with very large datasets). In many cases I've noticed that using apply, sapply etc can help speeding up processes, but in this ca

[R] optimizing speed of calculation (recursive product)

2008-09-03 Thread Wolfgang Raffelsberger
Dear list, I'm wondering how to optimize functions/processes like the one shown below (which simplifies something we're trying to do with very large datasets). In many cases I've noticed that using apply, sapply etc can help speeding up processes, but in this case I don't see how I could do so.