Re: [R] R perfomance question !!!

From: Roland Rau <roland.rproject_at_gmail.com>
Date: Wed, 18 Jun 2008 17:07:19 -0400

Hi,

diver495 wrote:
> Using Visual Basic I can complete the same script (simple loop of 5000000
> itterations) in 0.1 sec.
> Is it realy R not suitable for huge computing.

If you are happy with Visual Basic, then there is no need for you to use R. In case your message was not a flamebait, it is well known that loops like these are often bottlenecks for R.

There are many resources how to easily avoid them. See, for example, "S Programming by Venables and Ripley or John Chambers' book: Programming with data.
Even searching the mail archive for subject like "avoid loops" might be helpful.
You might also consider checking functions like apply, tapply, ...

Best,
Roland

P.S.
It seems there is also a good book available for scientific computing with Visual Basic:
http://www.ibiblio.org/Dave/Dr-Fun/df200002/df20000210.jpg



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 18 Jun 2008 - 21:12:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 19 Jun 2008 - 08:31:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive