Re: [R] long run time for loop operation matrix fill

2008-08-08 Thread Roland Rau
Hi, Bert Gunter wrote: speedup over explicit loops. As you said, their greatest advantage is elegance and code readability (as functional programming, rather than procedural programming, constructs). As you also said, vectorizing calculations is a central theme in R that takes some getting

[R] long run time for loop operation matrix fill

2008-08-07 Thread rcoder
Hi everyone, I'm running some code containing an outer and inner loop, to fill cells in a 2500x1500 results matrix. I left my program running overnight, and it was still running when I checked 17 hours later. I have tested the operation on a smaller matrix and it executes fine, so I believe

Re: [R] long run time for loop operation matrix fill

2008-08-07 Thread Bert Gunter
PROTECTED] On Behalf Of Roland Rau Sent: Thursday, August 07, 2008 2:22 PM To: rcoder Cc: r-help@r-project.org Subject: Re: [R] long run time for loop operation matrix fill Hi rcoder, rcoder wrote: Hi everyone, I'm running some code containing an outer and inner loop, to fill cells