The mclm method ranks() is not
to be confused with base::rank(). There are two
important differences.
First,base::rank() always ranks items from low values to
high values and ranks() ranks from high
frequency items to low frequency items.
Second, base::rank() allows the user to choose among
a number of different ways to handle ties.
In contrast, ranks() always handles ties
in the same way. More specifically, items with identical frequencies
are always ranked in alphabetical order.
In other words, base::rank() is a flexible tool that
supports a number of different ranking methods that are commonly used in
statistics. In contrast, ranks() is a
rigid tool that supports only one type of ranking, which is a type of
ranking that is atypical from a statistics point of view, but is commonly
used in linguistic frequency lists. Also, it is designed to be unaffected
by the order of the items in the frequency list.