recordTodaysPredictions | R Documentation |
Record today's predictions to file (for easy later retrieval). Run cleanupPredictionsFile
periodically to tidy
recordTodaysPredictions(
today = Sys.Date(),
filepath = file.path(getOption("HockeyModel.data.path"), "dailyodds.csv"),
schedule = HockeyModel::schedule,
params = NULL,
include_xG = FALSE,
draws = TRUE
)
today |
Day's predictions to record. Defaults to today, but can set any other day |
filepath |
csv file location to store predictions. Will append to file. |
schedule |
HockeyModel::schedule or supplied. |
params |
The named list containing m, rho, beta, eta, and k. See updateDC for information on the params list |
include_xG |
Whether to record daily XG values |
draws |
whether to record draw odds (True) or not (False). Default is True |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.