
Men's College Basketball win probability chart data from ESPN
Source:R/espn_mbb_wp.R
espn_mbb_wp.RdMen's College Basketball win probability chart data from ESPN
Value
espn_mbb_wp() - A data frame with 9 variables:
game_id: character.Referencing game ID (should be same as
game_idfrom other functions).play_id: character.Referencing play ID.
period: integer.Clock (time) left in the game.
time_left: character.Clock (time) left in the game.
period_seconds_left: integer.Seconds left in the period.
game_seconds_left: integer.Seconds left in the game.
home_win_percentage: double.The probability of the home team winning the game.
away_win_percentage: double.The probability of the away team winning the game (calculated as 1 -
home_win_percentage-tie_percentage).tie_percentage: double.The probability of the game ending the final period in a tie.
See also
Other ESPN MBB Functions:
espn_mbb_betting(),
espn_mbb_conferences(),
espn_mbb_game_all(),
espn_mbb_game_rosters(),
espn_mbb_pbp(),
espn_mbb_player_box(),
espn_mbb_player_stats(),
espn_mbb_rankings(),
espn_mbb_scoreboard(),
espn_mbb_standings(),
espn_mbb_team_box(),
espn_mbb_team_stats(),
espn_mbb_teams()
Examples
# \donttest{
espn_mbb_wp(game_id = 401256760)
#> ── ESPN MBB Win Probability Information from ESPN.com ─────────── hoopR 2.1.0 ──
#> ℹ Data updated: 2023-11-28 22:09:59 UTC
#> # A tibble: 352 × 9
#> game_id play_id period time_left period_seconds_left game_seconds_left
#> * <chr> <chr> <dbl> <chr> <dbl> <dbl>
#> 1 401256760 40125676010… 1 19:40 1180 2380
#> 2 401256760 40125676010… 1 19:36 1176 2376
#> 3 401256760 40125676010… 1 19:36 1176 2376
#> 4 401256760 40125676010… 1 19:11 1151 2351
#> 5 401256760 40125676010… 1 19:09 1149 2349
#> 6 401256760 40125676010… 1 18:54 1134 2334
#> 7 401256760 40125676010… 1 18:54 1134 2334
#> 8 401256760 40125676010… 1 18:29 1109 2309
#> 9 401256760 40125676010… 1 18:17 1097 2297
#> 10 401256760 40125676010… 1 18:17 1097 2297
#> # ℹ 342 more rows
#> # ℹ 3 more variables: home_win_percentage <dbl>, away_win_percentage <dbl>,
#> # tie_percentage <dbl>
# }