Skip to contents

Get ESPN's WNBA game data (play-by-play, team and player box)

Usage

espn_wnba_game_all(game_id)

Arguments

game_id

Game ID

Value

A named list of dataframes: Plays, Team, Player

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_wnba_game_all(game_id = 401244185))
#> $Plays
#> ── ESPN WNBA Play-by-Play Information from ESPN.com ──────────── wehoop 1.7.0 ──
#>  Data updated: 2022-11-22 05:59:41 UTC
#> # A tibble: 388 × 48
#>    id      seque…¹ text  away_…² home_…³ scori…⁴ score…⁵ shoot…⁶ type_id type_…⁷
#>    <chr>   <chr>   <chr>   <int>   <int> <lgl>     <int> <lgl>   <chr>   <chr>  
#>  1 401244… 4       Caro…       0       0 FALSE         0 FALSE   615     Jumpba…
#>  2 401244… 7       Nata…       0       0 FALSE         0 FALSE   42      Offens…
#>  3 401244… 9       Nata…       0       0 FALSE         0 FALSE   84      Offens…
#>  4 401244… 10      Dani…       0       0 FALSE         0 TRUE    110     Drivin…
#>  5 401244… 11      Caro…       0       0 FALSE         0 FALSE   156     Offens…
#>  6 401244… 12      Caro…       2       0 TRUE          2 TRUE    125     Layup …
#>  7 401244… 13      Sue …       2       0 FALSE         0 TRUE    131     Pullup…
#>  8 401244… 14      Las …       2       0 FALSE         0 FALSE   155     Defens…
#>  9 401244… 15      A'ja…       4       0 TRUE          2 TRUE    95      Layup …
#> 10 401244… 17      Ange…       4       0 FALSE         0 FALSE   45      Person…
#> # … with 378 more rows, 38 more variables: period_number <int>,
#> #   period_display_value <chr>, clock_display_value <chr>, team_id <chr>,
#> #   coordinate_x <int>, coordinate_y <int>, play_id <chr>, athlete_id_1 <chr>,
#> #   athlete_id_2 <chr>, athlete_id_3 <chr>, home_team_id <int>,
#> #   home_team_mascot <chr>, home_team_name <chr>, home_team_abbrev <chr>,
#> #   home_team_logo <chr>, home_team_logo_dark <chr>, home_team_full_name <chr>,
#> #   home_team_color <chr>, home_team_alternate_color <chr>, …
#> 
#> $Team
#> ── ESPN WNBA Team Box Information from ESPN.com ──────────────── wehoop 1.7.0 ──
#>  Data updated: 2022-11-22 05:59:41 UTC
#> # A tibble: 2 × 40
#>     game_id season season_t…¹ game_date  team_id team_…² team_…³ team_…⁴ team_…⁵
#>       <dbl>  <int>      <int> <date>     <chr>   <chr>   <chr>   <chr>   <chr>  
#> 1 401244185   2020          3 2020-10-06 17      s:40~l… las-ve… Las Ve… Aces   
#> 2 401244185   2020          3 2020-10-06 14      s:40~l… seattl… Seattle Storm  
#> # … with 31 more variables: team_abbreviation <chr>, team_display_name <chr>,
#> #   team_short_display_name <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, team_logo <chr>,
#> #   field_goals_made_field_goals_attempted <chr>, field_goal_pct <chr>,
#> #   three_point_field_goals_made_three_point_field_goals_attempted <chr>,
#> #   three_point_field_goal_pct <chr>,
#> #   free_throws_made_free_throws_attempted <chr>, free_throw_pct <chr>, …
#> 
#> $Player
#> ── ESPN WNBA Player Box Information from ESPN.com ────────────── wehoop 1.7.0 ──
#>  Data updated: 2022-11-22 05:59:41 UTC
#> # A tibble: 21 × 32
#>    athlete…¹ team_…² min   fg    fg3   ft    oreb  dreb  reb   ast   stl   blk  
#>    <chr>     <chr>   <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#>  1 Angel Mc… Aces    20    2-7   1-1   2-2   0     1     1     1     1     0    
#>  2 A'ja Wil… Aces    32    7-15  0-0   4-4   0     6     6     4     1     1    
#>  3 Carolyn … Aces    25    3-5   0-0   0-0   4     6     10    2     0     0    
#>  4 Danielle… Aces    25    2-7   0-0   0-2   0     2     2     3     1     0    
#>  5 Kayla Mc… Aces    25    3-7   1-2   2-2   0     6     6     2     2     0    
#>  6 Emma Can… Aces    17    1-4   0-0   0-2   2     1     3     0     0     0    
#>  7 Cierra B… Aces    9     0-2   0-0   0-0   0     1     1     0     0     0    
#>  8 Sugar Ro… Aces    15    0-3   0-2   0-0   1     1     2     1     0     0    
#>  9 Lindsay … Aces    7     1-2   0-0   0-0   0     1     1     0     0     1    
#> 10 Jackie Y… Aces    26    3-12  0-0   5-6   0     1     1     1     0     0    
#> # … with 11 more rows, 20 more variables: to <chr>, pf <chr>, `+/-` <chr>,
#> #   pts <chr>, starter <lgl>, ejected <lgl>, did_not_play <lgl>, active <lgl>,
#> #   athlete_jersey <chr>, athlete_id <chr>, athlete_short_name <chr>,
#> #   athlete_headshot_href <chr>, athlete_position_name <chr>,
#> #   athlete_position_abbreviation <chr>, team_name <chr>, team_logo <chr>,
#> #   team_id <chr>, team_abbreviation <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, and abbreviated variable names …
#> 
# }