Re: [R] index of sort

From: David Winsemius <>
Date: Sat, 26 Mar 2011 16:12:52 -0400

On Mar 26, 2011, at 2:03 PM, Quan Zhou wrote:

> 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.

You seem to be looking for:



David Winsemius, MD
West Hartford, CT

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 26 Mar 2011 - 20:14:52 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:40:25 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive