Skip to content

[patch] Fix typo in 'rank' documentation

2 messages · Jonathan Armond, Martin Maechler

#
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".

Thanks,
Jon
-------------- 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
#
> 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".

    > Thanks,
    > Jon

    > ----------------------------------------------------------------------
    > Index: src/library/base/man/rank.Rd
    > ===================================================================
    > --- src/library/base/man/rank.Rd	(revision 73116)
    > +++ src/library/base/man/rank.Rd	(working copy)
    ...........

Thank you, Jon.

Seems my mistake, I'm going to correct it.

Martin Maechler
ETH Zurich