View source: R/scorelines_to_outcomes.R
Often we are more interested in the outcome of a match (home win, draw, away win) than we are in the scorelines. This is a helper function that aggregates scoreline probabilities to outcome probabilities.
1 2 | scorelines_to_outcomes(scorelines, hgoal = hgoal, agoal = agoal,
prob = prob)
|
scorelines |
A dataframe containing the scoreline probabilities |
hgoal |
The column containing home goals |
agoal |
The column containing away goals |
prob |
The column containing the probability of that given scoreline |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.