Tord Snäll schrieb: > Dear all, > I would like to get the order of the values in a vector. I have tried > rank(), order() and searched the archive, though without success. maybe this page could give you some hints: http://www.ats.ucla.edu/STAT/r/faq/sort.htm Regards Knut