[Rd] order() and sort() on single row data.frames

Kurt Hornik Kurt@Horn|k @end|ng |rom wu@@c@@t
Tue Dec 1 19:16:34 CET 2020


>>>>> Benjamin Becker writes:

> Hi,
> not sure whether this belongs here or has been reported/asked before.

> In the current R devel the behavior of order() and sort() on data.frames 
> with a single row has changed.

> Before (release):

>> sort(data.frame("b", "a"))
>    X.a. X.b.
> 1    a    b

> Now (devel):

>> sort(data.frame("b", "a"))
>    X.b.
> 1    b

> I did not find any specific documentation in the daily news log on
> this.

Work in progress.  Likely this will become an error: ? sort clearly says
it does not work on data frames.

Best
-k

> Thanks,
> Benjamin

> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list