Sverre, have you tried to put minus(-) in front of the variable by which you order the other?
weidong On Sun, Jul 22, 2012 at 12:27 PM, Sverre Stausland <john...@fas.harvard.edu> wrote: > 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 > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.