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

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Thu Dec 14 16:17:32 CET 2006


Jenny Barnes wrote:
> Dear R-help,
> 
> Thank you for the responses off everyone- you'll be please to hear Duncan that 
> using: 
>> gpcc.array <- array(gpcc.data2[,5], c(144, 72, 46))
> was spot-on, worked like a dream. The data is in the correct places as I checked 
> with the text file. It took literally 2 seconds - quite an improvement time on 
> the predicted 26 hours :-)
> 

  However now you cant tell your supervisor that your data manipulation 
will take 26 hours - giving you a day to get your Xmas shopping done...

Barry



More information about the R-help mailing list