Re: [R] Very slow using S4 classes

2011-09-12 Thread André Rossi
Thank you a lot Morgan. Your suggestion helped me to speed up my code. But I still believe that the inefficience is an S4 issue. Best regards, André Rossi 2011/9/12 Martin Morgan > Hi André... > > > On 09/12/2011 07:20 AM, André Rossi wrote: > >> Dear Martin Morgan and Martin Maechler... >>

Re: [R] Very slow using S4 classes

2011-09-12 Thread Martin Morgan
Hi André... On 09/12/2011 07:20 AM, André Rossi wrote: Dear Martin Morgan and Martin Maechler... Here is an example of the computational time when a slot of a S4 class is of another S4 class and when it is just one object. I'm sending you the data file. Thank you! Best regards, André Rossi

Re: [R] Very slow using S4 classes

2011-09-12 Thread André Rossi
Dear Martin Morgan and Martin Maechler... Here is an example of the computational time when a slot of a S4 class is of another S4 class and when it is just one object. I'm sending you the data file. Thank you! Best regards, André Rossi ##

Re: [R] Very slow using S4 classes

2011-09-10 Thread Martin Maechler
> Martin Morgan > on Sat, 10 Sep 2011 10:18:11 -0700 writes: > On 09/10/2011 08:08 AM, André Rossi wrote: >> Hi everybody! >> >> I'm creating an object of a S4 class that has two slots: ListExamples, >> which is a list, and idx, which is an integer (as the code be

Re: [R] Very slow using S4 classes

2011-09-10 Thread Martin Morgan
On 09/10/2011 08:08 AM, André Rossi wrote: Hi everybody! I'm creating an object of a S4 class that has two slots: ListExamples, which is a list, and idx, which is an integer (as the code below). Then, I read a data.frame file with 1 (ten thousands) of lines and 10 columns, do some pre-proce

Re: [R] Very slow using S4 classes

2011-09-10 Thread Uwe Ligges
On 10.09.2011 17:08, André Rossi wrote: Hi everybody! I'm creating an object of a S4 class that has two slots: ListExamples, which is a list, and idx, which is an integer (as the code below). Then, I read a data.frame file with 1 (ten thousands) of lines and 10 columns, do some pre-proces

[R] Very slow using S4 classes

2011-09-10 Thread André Rossi
Hi everybody! I'm creating an object of a S4 class that has two slots: ListExamples, which is a list, and idx, which is an integer (as the code below). Then, I read a data.frame file with 1 (ten thousands) of lines and 10 columns, do some pre-processing and, basically, I store each line as an