[R] index of sort

From: Quan Zhou <quan.poko2000_at_gmail.com>
Date: Sat, 26 Mar 2011 14:03:06 -0400


Hi
How can I return the index of sort, when I use R function sort? or any other sorting functions in R
For example, I sorted a vector, but R just return the sorted value without giving me the original index of these data.

Thanks a lot.

        [[alternative HTML version deleted]]



R-help_at_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. Received on Sat 26 Mar 2011 - 20:05:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Mar 2011 - 20:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive