Displaying 2 results from an estimated 2 matches for "unranked".
2010 Jan 08
2
A better way to Rank Data that considers "ties"
...ch person's rank is - e.g.
David is number 1 because he has the most apples.
So this is what I want:
Apples Rank
Bob 2 5
Frank 3 4
Joe 5 2
Jim 4 3
David 6 1
I have managed to do this in the following steps:
Unranked<-rownames(OriginalMatrix)
Ranked<-names(sort(OriginalMatrix,decreasing=T))
Matched<-match(Unranked,Ranked)
NewMatrix<-cbind(OriginalMatrix,Matched)
This is not acceptable, however, if two people have the same number of
apples.
You will get:
NewMatrix
Apples Rank
Bob 2...
2008 Sep 27
3
Query::MatchAll
Why there still been rank when using Query::MatchAll() ?