Re: [R] How to speed up R program

2016-03-19 Thread MacQueen, Don
You can start with ?Rprof which can help you find out what steps in your calculations are taking the most time. Depending on what, exactly, you're doing, look for places where you're using a data frame when a matrix would serve the purpose. Data frames have more overhead than matrices. Sarah Go

Re: [R] How to speed up R program

2016-03-15 Thread MAURICE Jean - externe
Hi Ragia, If time is really a big problem and you have a lot of datas and you want to use all the cores of the processor, you should use FORTRAN for your calculations. But this is only possible with a real FORTRAN developer and will take some times. I am an old freelance (61) and I began compu

Re: [R] How to speed up R program

2016-03-14 Thread Sarah Goslee
, > > > > Ragia > > > >> Date: Tue, 15 Mar 2016 08:45:56 +1100 >> Subject: Re: [R] How to speed up R program >> From: drjimle...@gmail.com >> To: ragi...@hotmail.com >> CC: r-help@r-project.org >> >> Hi Ragia, >> Improving the efficiency

Re: [R] How to speed up R program

2016-03-14 Thread Amos B. Elberg
wish is taken from file to memory > once) but it runs about 10k times and in each mad some calculations ? > > hope this clear the problem, > > > > Ragia > > > >> Date: Tue, 15 Mar 2016 08:45:56 +1100 >> Sub

Re: [R] How to speed up R program

2016-03-14 Thread Ragia .
100 > Subject: Re: [R] How to speed up R program > From: drjimle...@gmail.com > To: ragi...@hotmail.com > CC: r-help@r-project.org > > Hi Ragia, > Improving the efficiency of a program usually requires detailed > analysis of what it is doing and how those operations can be perfor

Re: [R] How to speed up R program

2016-03-14 Thread Jim Lemon
Hi Ragia, Improving the efficiency of a program usually requires detailed analysis of what it is doing and how those operations can be performed more rapidly. That is to say, without knowing what the program is supposed to accomplish and how it is doing it now, very little help can be provided. One

[R] How to speed up R program

2016-03-14 Thread Ragia .
Dear group I have two R sessions  running on Ubuntu 14.0x server , and I found that my program will take too long time to be finished( months...!), I used top command and found that   cpu usage is 21.3%.  the server is Enterprise SP-64 - 64G E5-1630v3 SoftRaid 2x2 TB Server . 6 core how can