Re: [R] Done: Fast way of finding top-n values of a long vector

2009-06-05 Thread Stavros Macrakis
On Fri, Jun 5, 2009 at 4:09 AM, Allan Engelhardt wrote: > I'm all done now. The "max2" version below is what I went with in the end > for my proposed change to caret::nearZeroVar (which used the "sort" method). > Max Kuhn will make it available on CRAN soon. It speeds up that routine by > a fac

[R] Done: Fast way of finding top-n values of a long vector

2009-06-05 Thread Allan Engelhardt
I'm all done now. The "max2" version below is what I went with in the end for my proposed change to caret::nearZeroVar (which used the "sort" method). Max Kuhn will make it available on CRAN soon. It speeds up that routine by a factor 2-5 on my test cases and uses much less memory. For what