[Rd] [patch] Fix typo in 'rank' documentation

Jonathan Armond jon.armond at gmail.com
Thu Aug 24 08:10:08 CEST 2017

I noticed a typo in the documentation for the 'rank' function.
Specifically, it describes ties.method="first" and contrasts with...
ties.method="first", when it should be ties.method="last".

-------------- next part --------------
Index: src/library/base/man/rank.Rd
--- src/library/base/man/rank.Rd	(revision 73116)
+++ src/library/base/man/rank.Rd	(working copy)
@@ -34,7 +34,7 @@
   (called \sQuote{ties}), the argument \code{ties.method} determines the
   result at the corresponding indices.  The \code{"first"} method results
   in a permutation with increasing values at each index set of ties, and
-  analogously \code{"first"} with decreasing values.  The
+  analogously \code{"last"} with decreasing values.  The
   \code{"random"} method puts these in random order whereas the
   default, \code{"average"}, replaces them by their mean, and
   \code{"max"} and \code{"min"} replaces them by their maximum and

More information about the R-devel mailing list