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.

scorelines_to_outcomes(scorelines, hgoal = hgoal, agoal = agoal,
  prob = prob)

Arguments

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