to_rankings | R Documentation |
This function converts a matrix of ranks into a matrix of rankings (i.e., orderings), potentially including reviewer assignments as an attribute of the ranking matrix. Additionally, it can be used to add an assignments matrix to an existing matrix of rankings.
to_rankings(ranks, assignments = NULL, rankings = NULL)
ranks |
A matrix or vector of ranks, such that the (i,j) entry includes the rank given by judge i to proposal j.
|
assignments |
A matrix of booleans, such that the (i,j) entry is |
rankings |
A matrix or vector of rankings. If a matrix, there should be one ranking per row. |
A matrix of rankings, with one row per ranking. If assignments
argument is specified, then the rankings matrix will have
the attribute "assignments".
ranks <- matrix(data=c(4,2,3,1,NA,1,2,3,NA,NA,1,NA),byrow=TRUE,nrow=3)
assignments=matrix(TRUE,byrow=TRUE,nrow=3,ncol=4)
to_rankings(ranks=ranks)
to_rankings(ranks=ranks,assignments=assignments)
to_rankings(assignments=matrix(TRUE,nrow=1,ncol=3),rankings=c(3,2,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.