powered by
ESPN Metrics
Get win probability chart data from ESPN Graciously contributed by MrCaseB:
espn_metrics_wp(game_id)
(Integer required): Game ID filter for querying a single game Can be found using the cfbd_game_info() function
cfbd_game_info()
espn_metrics_wp() - A data frame with 5 variables:
espn_metrics_wp()
game_id
Referencing game ID (should be same as game_id from other functions).
play_id
Referencing play ID.
seconds_left
Seconds left in the game.
home_win_percentage
The probability of the home team winning the game.
away_win_percentage
The probability of the away team winning the game (calculated as 1 - home_win_percentage - tie_percentage).
tie_percentage
The probability of the game ending the final period in a tie.
# NOT RUN { try(espn_metrics_wp(game_id = 401114164)) # } # NOT RUN { # }
Run the code above in your browser using DataLab