Displaying 1 result from an estimated 1 matches for "rankpair".
Did you mean:
rankdir
2006 Jun 21
5
rank(x,y)?
Suppose I have two columns, x,y. I can use order(x,y) to calculate a
permutation that puts them into increasing order of x,
with ties broken by y.
I'd like instead to calculate the rank of each pair under the same
ordering, but the rank() function doesn't take multiple values
as input. Is there a simple way to get what I want?
E.g.
> x <- c(1,2,3,4,1,2,3,4)
> y <-