Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • What is the problem with the one in the link? Commented Jan 19, 2015 at 14:21
  • Only the first column y1 is order not the rest y2... Commented Jan 19, 2015 at 14:26
  • Should the order of the values in the x columns change too? Commented Jan 19, 2015 at 14:30
  • 1
    I think you could use do.call(order, c(data[grep('^y', names(data))], decreasing=TRUE) Commented Jan 19, 2015 at 14:31
  • @akrun: I like your solution, if you would submit it, I would accept it. Thanks. Commented Jan 19, 2015 at 14:35