Skip to contents

Get ESPN's WNBA play by play data

Usage

espn_wnba_pbp(game_id)

Arguments

game_id

Game ID

Value

Returns a play-by-play data frame

Author

Saiem Gilani

Examples


# \donttest{
  try(espn_wnba_pbp(game_id = 401455681))
#> ── ESPN WNBA Play-by-Play Information from ESPN.com ──────────── wehoop 1.8.0 ──
#>  Data updated: 2023-03-11 06:15:10 UTC
#> # A tibble: 343 × 49
#>    id      seque…¹ text  away_…² home_…³ scori…⁴ score…⁵ wallc…⁶ shoot…⁷ type_id
#>    <chr>   <chr>   <chr>   <int>   <int> <lgl>     <int> <chr>   <lgl>   <chr>  
#>  1 401455… 4       Jonq…       0       0 FALSE         0 2022-0… FALSE   615    
#>  2 401455… 7       A'ja…       0       2 TRUE          2 2022-0… TRUE    110    
#>  3 401455… 9       Nati…       0       2 FALSE         0 2022-0… TRUE    132    
#>  4 401455… 10      Kiah…       0       2 FALSE         0 2022-0… FALSE   155    
#>  5 401455… 11      Jack…       0       5 TRUE          3 2022-0… TRUE    92     
#>  6 401455… 13      Nati…       3       5 TRUE          3 2022-0… TRUE    92     
#>  7 401455… 15      A'ja…       3       7 TRUE          2 2022-0… TRUE    92     
#>  8 401455… 17      Cour…       3       7 FALSE         0 2022-0… TRUE    131    
#>  9 401455… 18      Kels…       3       7 FALSE         0 2022-0… FALSE   155    
#> 10 401455… 19      A'ja…       3       9 TRUE          2 2022-0… TRUE    110    
#> # … with 333 more rows, 39 more variables: type_text <chr>,
#> #   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>, …
# }