http://mlg.eng.cam.ac.uk/dave/rmbenchmark.php
I haven't ever tried it myself, but online sources suggest that Matlab possibly gains speed by internally avoiding loops rather than looping faster. What would stand at the end if this were true, however, is improved end user speed. Daniel ________________________________________ From: David Winsemius [dwinsem...@comcast.net] Sent: Wednesday, July 20, 2011 9:01 AM To: Daniel Malter Cc: r-help@r-project.org Subject: Re: [R] loops and simulation On Jul 20, 2011, at 1:34 AM, Daniel Malter wrote: snipped > requests, except that you were referring to SAS and had heard that R > "does > not like loops." (This is factually wrong. But R can be slow looping). Where did you hear this? Can you cites any references? -- David Winsemius, MD West Hartford, CT ______________________________________________ R-help@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.