| Type: | Package | 
| Title: | Relative Placement Algorithm | 
| Version: | 0.1.0 | 
| Depends: | R (≥ 3.5.0) | 
| Description: | Implementation of the relative placement algorithm widely used in the scoring of Lindy Hop and West Coast Swing dance contests. | 
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] | 
| Encoding: | UTF-8 | 
| LazyData: | true | 
| RoxygenNote: | 7.0.0 | 
| NeedsCompilation: | no | 
| Packaged: | 2020-06-19 16:01:52 UTC; daphnaharel | 
| Author: | Daphna Harel [cre, aut], Yoav Bergner [aut] | 
| Maintainer: | Daphna Harel <daphna.harel@gmail.com> | 
| Repository: | CRAN | 
| Date/Publication: | 2020-06-25 13:20:11 UTC | 
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