Skip to content
Prev 268922 / 398502 Next

Speeding nested loops up

General suggestions: avoid cbind() and avoid accessing data frames. Convert
data frames to matrices before accessing them. Also, why do you print? You
don't really want to print(t) for every iteration of the loop, do you? Also
avoid defining elements within the loop that need to be defined only once (
such as path<- paste("c:/Data/",csvfile) ). 

For more specific help it would help if you provided a minimally
self-contained example (one that we can copy-paste in the R prompt) as
requested in the posting guide.

HTH,
Daniel
mark_horo wrote:
--
View this message in context: http://r.789695.n4.nabble.com/Speeding-nested-loops-up-tp3751485p3751542.html
Sent from the R help mailing list archive at Nabble.com.