readJudgePresenterMatrix {raincin}R Documentation

Transform a Judge-Presenter Matrix Converter

Description

Convert a judge-presenter matrix to a set of square matrices

Usage

readJudgePresenterMatrix(jpMat)

Arguments

jpMat

a Judge-Presenter matrix, or a User-Movie matrix

Value

A list, including numGame

  1. numGame: Number of times teams i and j faced eath other

  2. numWin: Number of wins teams i plays against j

  3. numTie: Number of ties teams i plays against j

  4. numLoss: Number of losses teams i plays against j

  5. numPt: Number of points teams i accumulates against j

Author(s)

Jiangtao Gou

Shuyi Wu

Examples

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)

[Package raincin version 1.0.3 Index]