Skip to content
Back to formatted view

Raw Message

Message-ID: <CACtaF7wuWOF2jOz5mbHzPAS_in_S8rxz83SZ_6Du_n_JWHBAqQ@mail.gmail.com>
Date: 2012-07-22T16:27:34Z
From: Sverre Stausland
Subject: Reorder in decreasing order

reorder() is probably the best way to order the levels in a vector
without manually specifying the order. But reorder() orders by default
in an increasing order: "The levels are ordered such that the values
returned by ?FUN? are in increasing order."

Is there a way to do what reorder() does, but order the levels
according to a _decreasing_ order of the values?

Sverre