Description Usage Arguments Value Functions
Simulates an entire season from a list of teams and their schedule
1 2 3 4 5 | process_season(teams, schedule, weights = list(c(60, 20, 20)),
simulation_run = 0)
simulate_league(teams, schedule, weights = list(c(60, 20, 20)),
num_sims = 10)
|
teams |
Data frame of with team_name, race, TV_displayed, TV_extra, wins, losses, draws. |
schedule |
Data frame containing the league schedule. Must contain |
weights |
List containing a vector per round of three weights for combining probabilities from CCL data and a team's own record. Provided to the |
simulation_run |
Number of this simulation run. Used to print logging info to console so monitor simulation progress when performed in bulk |
num_sims |
Total number of simulations to run. Defaults to 10 for a quick run to check that everything is working. Recommend changing it to 1000 or more for real predictions |
Data frame containing the predicted results of the season.
process_season
: Simulates a single run through of a season
simulate_league
: Runs multiple simulations and returns the cumulative points totals for the teams across the season
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.