From cd94cda92d838a2938cdb90b51ca1d0cc3eeb7af Mon Sep 17 00:00:00 2001 From: smeyer Date: Wed, 24 Apr 2024 12:04:03 +0000 Subject: [PATCH] mention new sort_by() git-svn-id: https://svn.r-project.org/R/trunk@86481 00db46b3-68df-0310-9c12-caf00c1e9a41 --- doc/manual/R-FAQ.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/manual/R-FAQ.texi b/doc/manual/R-FAQ.texi index 822047e09d6..d3465a54383 100644 --- a/doc/manual/R-FAQ.texi +++ b/doc/manual/R-FAQ.texi @@ -26,7 +26,7 @@ @c things. @c For now, simply hard-wire the year again. @c @include version.texi -@set FAQ_YEAR 2023 +@set FAQ_YEAR 2024 @c @macro CRAN{} @@ -2763,6 +2763,9 @@ or more of the columns, simply use @code{order()} (e.g., @code{DF[order(DF$a, DF[["b"]]), ]} to sort the data frame @code{DF} on columns named @code{a} and @code{b}). +From R 4.4.0, @code{sort_by()} provides a less verbose alternative +with a formula interface (e.g., @code{sort_by(DF, ~a + b)}). + @node Why does the help.start() search engine not work?, Why did my .Rprofile stop working when I updated R?, How can I sort the rows of a data frame?, R Miscellanea @section Why does the help.start() search engine not work?