[R] run-time of an R function

2006-01-16 Thread Rossi, Peter E.
I have noticed dramatic differences in the run-time for the execution of one of my functions depending on whether or not R was restarted. Immediately after restart of R GUI, exec time = 2.8 min. If I then repeat the execution of the function in the same R session, exec time = 7.1 min. Removing

Re: [R] run-time of an R function

2006-01-16 Thread Uwe Ligges
Rossi, Peter E. wrote: I have noticed dramatic differences in the run-time for the execution of one of my functions depending on whether or not R was restarted. Immediately after restart of R GUI, exec time = 2.8 min. If I then repeat the execution of the function in the same R session,

Re: [R] run-time of an R function

2006-01-16 Thread Alexandre Santos Aguiar
Em Seg 16 Jan 2006 16:02, Rossi, Peter E. escreveu: of the function in the same R session, exec time = 7.1 min. Removing all objects via rm(list=(all=TRUE)) and initiating gc (gc(reset=TRUE)) helps, but only slightly (exec time = 5.0 min). Hi, I am currently using extensively a script with

Re: [R] run-time of an R function

2006-01-16 Thread Prof Brian Ripley
On Mon, 16 Jan 2006, Alexandre Santos Aguiar wrote: Em Seg 16 Jan 2006 16:02, Rossi, Peter E. escreveu: of the function in the same R session, exec time = 7.1 min. Removing all objects via rm(list=(all=TRUE)) and initiating gc (gc(reset=TRUE)) helps, but only slightly (exec time = 5.0 min).