[R] progressive slowdown during script execution?

2006-06-01 Thread Tim Alcon
I'm an R novice, so I hope my question is a valid one. I'm trying to run the following script in the current version of R. for (i in 1:1640){for (j in (i+1):1641){ if (i == 1 j == 2){x - cor(sage[i,],sage[j,],method=spearman); y - cor(frie[i,],frie[j,],method=spearman)} if (i != 1 || j !=

Re: [R] progressive slowdown during script execution? [Broadcast ]

2006-06-01 Thread Liaw, Andy
You should try to figure out how large x and y need to be, and allocate them before the computation. Growing objects like that in R is very, very, very bad, as you've found out. Andy From: Tim Alcon I'm an R novice, so I hope my question is a valid one. I'm trying to run the following

Re: [R] progressive slowdown during script execution?

2006-06-01 Thread bogdan romocea
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Alcon Sent: Thursday, June 01, 2006 2:04 PM To: r-help@stat.math.ethz.ch Subject: [R] progressive slowdown during script execution? I'm an R novice, so I hope my question is a valid one. I'm trying to run the following script