I do not understand what happens. Please note
> x<-c(-2,4,-6,5,9,7)
> x
[1] -2 4 -6 5 9 7
> order(x)
[1] 3 1 2 4 6 5
I do not understand why the x-vector is not ordered. Look, when I give order(x)
add 7
And in this case? Supposedly you would not have to give me the vector x sorted in decreasing order?
> order(x, decreasing=TRUE)
[1] 5 6 4 2 1 3
How strange! Help please