predict_vs_real: Predictions vs Actual Results

Description Usage Arguments Details Value

View source: R/predict_vs_real.R

Description

A function that takes the prediction keys and the gathered matchData and decides whether the match has been played and then decides whether the match was a 'W' / 'L' / 'D' pivoted on the home team, and checks the prediction if it was correct (T) or incorrect (F).

Usage

1
predict_vs_real(KEYS, readyToAnalyse, matches)

Arguments

KEYS

A list containing options such as testing / prediction / important variables and information. Also contains API information.

readyToAnalyse

A character vector of the form of the redis keys.

matches

A data frame that contains rows of single matches that have been played between two teams.

Details

Redis Keys used;

Value

Nothing. The prediction key for a particular match is updated with a T or F whether the prediction was true or false.


ntyndall/footballstats documentation built on Aug. 13, 2019, 1:36 p.m.