Skip to content
Prev 59628 / 398502 Next

sorting without order

On Tue, 23 Nov 2004, Peter Dalgaard wrote:

            
Radix sorting as implemented in sort.list will be hard to beat:

ix <- sort.list(unclass(factor(v)), method="radix")

although in your case as.integer() will do.