[R] uniq -c

Sam Steingold sds at gnu.org
Tue Oct 16 19:46:15 CEST 2012


> * Duncan Murdoch <zheqbpu.qhapna at tznvy.pbz> [2012-10-16 12:47:36 -0400]:
>
> On 16/10/2012 12:29 PM, Sam Steingold wrote:
>> x is sorted.
> sparseby(data=x, INDICES=x, FUN=nrow)

this takes forever; apparently, it does not use the fact that x is
sorted (even then - it should not take more than a few minutes)...

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://openvotingconsortium.org http://www.memritv.org
http://think-israel.org http://pmw.org.il http://thereligionofpeace.com
Save the whales, feed the hungry, free the mallocs.




More information about the R-help mailing list