convertJudgePresenterMatrix: Judge-Presenter Matrix Converter

Description Usage Arguments Details Value Author(s) Examples

Description

Convert a judge-presenter matrix to a data frame with three variables/columns

Usage

1

Arguments

jpMat

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

Details

  1. score: nonzero and non-NA scores

  2. row: array indices

  3. col: arry indices

Value

A data frame as a long table, where each row is an observation, including the score, the row number and the column number in the jpMat matrix

Author(s)

Jiangtao Gou

Fengqing Zhang

Examples

1
2
3
4
5
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 <- convertJudgePresenterMatrix(jpMat)
print(result)

raincin documentation built on July 1, 2020, 5:53 p.m.