Displaying 1 result from an estimated 1 matches for "tp4650246".
2012 Nov 21
1
I don't know the difference between rank and order
...)]
[1] 10 10 20 30 30 20
> x[order(x)]
[1] 10 10 20 20 30 30
the result is quite different,
x[rank(x,ties.method="first")]
[1] 10 10 20 30 30 20
It is not sorted,why?
--
View this message in context: http://r.789695.n4.nabble.com/I-don-t-know-the-difference-between-rank-and-order-tp4650246.html
Sent from the R help mailing list archive at Nabble.com.