Package 'RPscoring'

Title: Relative Placement Algorithm
Description: Implementation of the relative placement algorithm widely used in the scoring of Lindy Hop and West Coast Swing dance contests.
Authors: Daphna Harel [cre, aut], Yoav Bergner [aut]
Maintainer: Daphna Harel <[email protected]>
License: GPL (>= 2)
Version: 0.1.0
Built: 2024-11-09 02:50:48 UTC
Source: https://github.com/daphnaharel/rpscoring

Help Index


Dash Matrix

Description

Function to obtain the matrix of number of 1-1s, 1-2s, and so on.

Usage

dashmatrix(data)

Arguments

data

dataset with competitors as rows and judges as columns

Value

A matrix:

dashmatrix

matrix of number of placements

Examples

dashmatrix(testdata)

Ranking of Contestants

Description

Function to rank contestants

Usage

rankContestants(data)

Arguments

data

dataset with competitors as rows and judges as columns

Value

A vector:

finalranking

final rankings of the competitors

Examples

rankContestants(testdata)

Resolve Ties

Description

Function to resolve ties between competitors.

Usage

resolveTies(data, contestants, column)

Arguments

data

dataset with competitors as rows and judges as columns

contestants

vector with which contestant numbers to resolve ties for

column

column of the dash matrix to begin with

Value

A list:

winnerfound

method by which winner was found

winner

vector with whom the winners were

Examples

resolveTies(testdata, c(1,2), 1)

Test Dataset

Description

This synthetic dataset represents the placements of n contestants (rows) by J judges (columns).

Usage

testdata

Format

A data frame with 8 contestants (rows) and 5 judges (variables):

J1

rankings for Judge 1

J2

rankings for Judge 1

J3

rankings for Judge 1

J4

rankings for Judge 1

J5

rankings for Judge 1