Skip to content
Prev 106127 / 398506 Next

loop is going to take 26 hours - needs to be quicker!

On Thu, 2006-12-14 at 12:56 +0000, Jenny Barnes wrote:
Take a "whole object" approach to this problem. You are also wasting a
lot of time by printing the values of 'j' in the loop.
[1] 476928      5
num [1:476928, 1:5]  2.7385 -0.0438 -0.1084  0.8768 -1.0024 ...
dim = c(144, 72, 46)))
[1] 0.024 0.026 0.078 0.000 0.000

You should verify the order of the values and adjust the indices
accordingly, if the above results in an out of order array.

HTH,

Marc Schwartz