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@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 > > > ______________________________________________ R-help@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