Re: [R] How to optimize this loop ? (correction)

From: Nicolas Prune <>
Date: Thu 18 Jan 2007 - 15:08:45 GMT

Thanks to everyone who answered, in public or in private.

I successfully rewrote my function with rle.

For my sample, the total computation times (I call this function around 1000 times) are roughly the same. However, I thank you for letting me know rle, and S Poetry.

Nicolas mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri Jan 19 02:13:30 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 18 Jan 2007 - 15:30:23 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.