[Rd] Bug in order function

Karl Nordström karl.nordstroem at uni-saarland.de
Thu Sep 14 17:03:00 CEST 2017


Dear R-devel(opers),

I wanted to draw your attention to a small problem with the order 
function in base. According to the documentation, radix sort supports 
different orders for each argument. This breaks when one of the 
arguments is an object.

Please have a look to this stackoverflow question:

https://stackoverflow.com/questions/39737871/r-order-method-on-multiple-columns-gives-error-argument-lengths-differ

It describes the problem well and suggests a solution.

Although it is a niche case, it's a very easy thing to fix :)

Best regards,

Karl Nordström



More information about the R-devel mailing list