[R] Largest N Values Efficiently?

David Katz david at davidkatzconsulting.com
Mon Nov 12 00:43:48 CET 2007


What is the most efficient alternative to x[order(x)][1:n] where
length(x)>>n?
I also need the positions of the mins/maxs perhaps by preserving names.

 Thanks for any suggestions.
-- 
View this message in context: http://www.nabble.com/Largest-N-Values-Efficiently--tf4788033.html#a13697535
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list