Hi, I have been sorting matrices by sorting each column one at a time. However, Many times I want to sort the whole matrix by sorting one column. Are there Ways to do this in R? Lana [[alternative HTML version deleted]]
Lana Schaffer wrote:> Hi, > I have been sorting matrices by sorting each column one at a time. > However, > Many times I want to sort the whole matrix by sorting one column. Are > there > Ways to do this in R? > Lana >Lana, See ?order: x[order(x[, 1]), ] --sundar