Get NBA win probability chart data from ESPN
Value
espn_nba_wp()
- A data frame with 21 variables:
col_name | types |
game_id | numeric |
play_id | character |
home_win_percentage | numeric |
away_win_percentage | numeric |
tie_percentage | numeric |
sequence_number | character |
text | character |
away_score | integer |
home_score | integer |
scoring_play | logical |
score_value | integer |
participants | list |
shooting_play | logical |
type_id | character |
type_text | character |
period_number | integer |
period_display_value | character |
clock_display_value | character |
team_id | character |
coordinate_x | integer |
coordinate_y | integer |
See also
Other ESPN NBA Functions:
espn_nba_betting()
,
espn_nba_game_all()
,
espn_nba_game_rosters()
,
espn_nba_pbp()
,
espn_nba_player_box()
,
espn_nba_player_stats()
,
espn_nba_scoreboard()
,
espn_nba_standings()
,
espn_nba_team_box()
,
espn_nba_team_stats()
,
espn_nba_teams()
Examples
# \donttest{
espn_nba_wp(game_id = 401283399)
#> ── ESPN NBA Win Probability Information from ESPN.com ─────────── hoopR 2.1.0 ──
#> ℹ Data updated: 2023-11-28 22:10:08 UTC
#> # A tibble: 472 × 22
#> game_id play_id home_win_percentage away_win_percentage tie_percentage
#> <dbl> <chr> <dbl> <dbl> <dbl>
#> 1 401283399 4012833994 0.615 0.385 0
#> 2 401283399 4012833997 0.6 0.4 0
#> 3 401283399 4012833998 0.595 0.405 0
#> 4 401283399 4012833999 0.594 0.406 0
#> 5 401283399 40128339911 0.61 0.39 0
#> 6 401283399 40128339912 0.615 0.385 0
#> 7 401283399 40128339913 0.599 0.401 0
#> 8 401283399 40128339914 0.593 0.407 0
#> 9 401283399 40128339915 0.54 0.46 0
#> 10 401283399 40128339916 0.577 0.423 0
#> # ℹ 462 more rows
#> # ℹ 17 more variables: sequence_number <chr>, text <chr>, away_score <int>,
#> # home_score <int>, scoring_play <lgl>, score_value <int>,
#> # participants <list>, wallclock <chr>, shooting_play <lgl>, type_id <chr>,
#> # type_text <chr>, period_number <int>, period_display_value <chr>,
#> # clock_display_value <chr>, team_id <chr>, coordinate_x <int>,
#> # coordinate_y <int>
# }