From bert.tijhuis at wavin.com  Mon Nov  3 08:15:07 2008
From: bert.tijhuis at wavin.com (bert.tijhuis at wavin.com)
Date: Mon,  3 Nov 2008 08:15:07 +0100 (CET)
Subject: [Rd] sort returns a wrong index (PR#13242)
Message-ID: <20081103071507.5E6BF282EF48@mail.pubhealth.ku.dk>

Full_Name: Bert Tijhuis
Version: 2.8.0
OS: MS-Windows
Submission from: (NULL) (217.140.7.52)



> xd
[1]  0.5 -1.0  0.2   NA -3.0  1.0  2.0   NA  2.0


> sort(xd, index=T)$ix
[1] 4 2 3 1 5 6 7


And in my believe it should be
5 2 3 1 6 7 8 4 9

This was function well in R 2.7.2

Good luck,



[Rd] sort returns a wrong index (PR#13242)
bert.tijhuis at wavin.com