get_projection: Calcuating the Probability of Player Success One Week Out

Description Usage Arguments Examples

View source: R/get_projection.R

Description

This function projects the competition's final standings a week beforehand, using the player preditions, the latest EPL table and the odds data for the final week of matches in the Premier League.

Usage

1
2
3
4
5
6
7
8
get_projection(
  url_odds,
  url_predictions,
  project_players = TRUE,
  runs = 10000,
  seed = 26,
  ...
)

Arguments

url_odds

A character string for the URL on Dropbox of the csv file that stores the odds data.

url_predictions

A character string for the URL on Dropbox of the csv file that stores the players' predictions.

project_players

A boolean to determine whether to project player (TRUE) or team (FALSE) outcomes.

runs

Number of iterations to use.

seed

Seed used for random trials.

...

Other arguments, such as for saved EPL data.

Examples

1
2
3
4
## Not run: 
get_projection(url_odds = "https://www.abcdef.com/abcdefg123.csv", url_predictions = "https://www.abcdef.com/abcdefg1234.csv")

## End(Not run)

p0bs/premPredictor documentation built on April 23, 2020, 2 p.m.