From Kurt@Horn|k @end|ng |rom wu@@c@@t  Tue Dec  1 19:16:34 2020
From: Kurt@Horn|k @end|ng |rom wu@@c@@t (Kurt Hornik)
Date: Tue, 1 Dec 2020 19:16:34 +0100
Subject: [Rd] order() and sort() on single row data.frames
In-Reply-To: <036bf6f5-477c-84e2-db0e-9e3349255229@iqb.hu-berlin.de>
References: <036bf6f5-477c-84e2-db0e-9e3349255229@iqb.hu-berlin.de>
Message-ID: <24518.34946.577900.599828@hornik.net>

>>>>> 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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



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