It would be great if somebody could explain what is going on.
(ii <- order(x <- c(1,1,3:1,1:4,3), y <- c(9,9:1), z <- c(2,1:9)))
## 6 5 2 1 7 4 10 8 3 9
Yes, I did read the manual, that's from where I got the example in the first place.
What is ii
?
EDIT: Considering a simpler example:
x <- c(1,1,3:1,1:4,3)
[1] 1 1 3 2 1 1 2 3 4 3 (&)
order(x)
[1] 1 2 5 6 4 7 3 8 10 9 (&&)
All I'm getting here (I believe) is that the '10' in (&&) corresponds to the '4' in (&) and means that the '4' has sort of rank (or "level") 10. Right? Put differently, the '4' is the 10th element in the ordered x
.