readJudgePresenterMatrix {raincin} | R Documentation |
Convert a judge-presenter matrix to a set of square matrices
readJudgePresenterMatrix(jpMat)
jpMat |
a Judge-Presenter matrix, or a User-Movie matrix |
A list, including numGame
numGame
: Number of times teams i and j faced eath other
numWin
: Number of wins teams i plays against j
numTie
: Number of ties teams i plays against j
numLoss
: Number of losses teams i plays against j
numPt
: Number of points teams i accumulates against j
Jiangtao Gou
Shuyi Wu
jpMat <- matrix(data=c(5,4,3,0, 5,5,3,1, 0,0,0,5, 0,0,2,0, 4,0,0,3, 1,0,0,4),
nrow=6,byrow=TRUE)
result <- readJudgePresenterMatrix(jpMat)
print(result)