Re: [R] SLLOOOWWW function ...

2007-07-21 Thread Bartjoosen
Hi If I'm right you are trying to find peaks with about the same mass as the maximum intensity. Why not make the difference between the maximum mass and the list of masses subsetted by intensity. then subset the difference with a thresholded value. If I'm not understanding your question clear,

Re: [R] SLLOOOWWW function ...

2007-07-18 Thread Michael Dewey
At 12:32 17/07/2007, Johannes Graumann wrote: Does anybody have any insight into how to make this faster? I am not an expert on R programming by any means but I notice you are growing your new data frame row by row. I believe it is normally recommended to allocate enough space to start with. I

[R] SLLOOOWWW function ...

2007-07-17 Thread Johannes Graumann
Does anybody have any insight into how to make this faster? I suspect, that the rounding going on may be an issue, as is the stepping through data frame rows using integers ... If you have the patience to teach a noob, he will highly appreciate it ;0) Joh digit - 4 for (minute in