Skip to content
Prev 321722 / 398500 Next

I don't understand the 'order' function

Hello,

Inline.

Em 16-04-2013 18:51, Julio Sergio escreveu:
No, why should it?
Try assigning the output of order and see what happens to the vector.


x <- c(2465, 2255, 2085, 1545, 1335, 1210, 920, 210, 210, 505, 1045)
(o <- order(x) )
x[o]  # Allright


Hope this helps,

Rui Barradas