tags:

views:

189

answers:

0

If one has 4 judges and they each give a score for a particular performer or a particular topic then one could have 4 vectors with each containing the score. But one would like to turn that into a rank to overcome grade inflation by one judge compared to another. that is easy

transform(assignment,judge1.rank=rank(judge1),judge2.rank=rank(judge2), judge3.rank=rank(judge3), judge4.rank=rank(judge4))

But then for each row (performer or topic) I want another four columns that for each row states the rank of ranks (or parallel rank) for each judge.

I would like to do something such as

prank(judge1.rank,judge2.rank,judge3.rank,judge4.rank)

I guess it would have to output as a dataframe.

I thought of using the reshape package to melt the data but that is just a preliminary thought.