recordTodaysPredictions: Record Today's Predictions

View source: R/league.R

recordTodaysPredictionsR Documentation

Record Today's Predictions

Description

Record today's predictions to file (for easy later retrieval). Run cleanupPredictionsFile periodically to tidy

Usage

recordTodaysPredictions(
  today = Sys.Date(),
  filepath = file.path(getOption("HockeyModel.data.path"), "dailyodds.csv"),
  schedule = HockeyModel::schedule,
  params = NULL,
  include_xG = FALSE,
  draws = TRUE
)

Arguments

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. today date must be in schedule

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


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.