Terry Mu
2005-Mar-18 21:37 UTC
[R] Is there such a function that can sort a table according to one column?
when I sort one column, other columns will change with it. otherwise, I can get index from sort() and write a function. Better idea? Thanks,
Liaw, Andy
2005-Mar-18 21:47 UTC
[R] Is there such a function that can sort a table according to one column?
See ?order, which is pointed to in the `See Also' section of ?sort. Andy> From: Terry Mu > > when I sort one column, other columns will change with it. > > otherwise, I can get index from sort() and write a function. > > Better idea? Thanks, > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > >
Seemingly Similar Threads
- is there a function like %in% for characters?
- beginner question: how to sort out distinct values from a vector
- creating mulptiple new variables from one data.frame according to columns and rows in that frame
- how to draw a 45 degree line on qqnorm() plot?
- rbinlist for data.table and specifying the column class