[R] speed up merge
Hans Ekbrand
hans at sociologi.cjb.net
Fri Mar 2 12:37:18 CET 2012
On Fri, Mar 02, 2012 at 03:24:20AM -0700, Ben quant wrote:
> Hello,
>
> I have a nasty loop that I have to do 11877 times.
Are you completely sure about that? I often find my self avoiding
loops-by-row by constructing vectors of which rows that fullfil a
condition, and then creating new vectors out of that vector. If you
elaborate on the problem, perhaps we could find a way to avoid the
loops altogether?
Mostly as a note to self, I wrote
http://code.cjb.net/vectors-instead-of-loop.html, it might be
understood by others too, but I'm not sure.
--
Hans Ekbrand (http://sociologi.cjb.net) <hans at sociologi.cjb.net>
More information about the R-help
mailing list