[R] Incorrect order

lll73 lauralapkauskaite at yahoo.com
Wed Oct 29 12:17:49 CET 2008



I am using the order function and the result seems to be incorrect:

> a<-c(20,30,15,40)
> order(a)
[1] 3 1 2 4

Any suggestions?

Thanks,
Laura

-- 
View this message in context: http://www.nabble.com/Incorrect-order-tp20224993p20224993.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list