Learn R Programming

trueskill (version 0.1)

Trueskill: Apply Trueskill to Tournament Data

Description

Trueskill function to be applied to tournament data in dataframe format. Data is required to be in long format with two rows for each match, one with player 1 first and one with player 2 first. Matches should be sorted such that the second copy of the match appears in the second half of the dataframe. The package currently only supports the trueskill algorithm with one player per team. Should this not match the data you are interested, a function could be written from AdjustPlayers, Player and Gaussian, and SetParameters. An example is provided at https://gist.github.com/bhoung/5596282 (runtime is approx 50 secs).

Usage

Trueskill(data, parameters)

Arguments

data
a data frame (data) with columns: Player, Opponent, margin.
parameters
Parameters object to hold input variables.