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.7.0 ──
#>  Data updated: 2022-11-22 05:59:46 UTC
#> # A tibble: 343 × 48
#>    id      seque…¹ text  away_…² home_…³ scori…⁴ score…⁵ shoot…⁶ type_id type_…⁷
#>    <chr>   <chr>   <chr>   <int>   <int> <lgl>     <int> <lgl>   <chr>   <chr>  
#>  1 401455… 4       Jonq…       0       0 FALSE         0 FALSE   615     Jumpba…
#>  2 401455… 7       A'ja…       0       2 TRUE          2 TRUE    110     Drivin…
#>  3 401455… 9       Nati…       0       2 FALSE         0 TRUE    132     Step B…
#>  4 401455… 10      Kiah…       0       2 FALSE         0 FALSE   155     Defens…
#>  5 401455… 11      Jack…       0       5 TRUE          3 TRUE    92      Jump S…
#>  6 401455… 13      Nati…       3       5 TRUE          3 TRUE    92      Jump S…
#>  7 401455… 15      A'ja…       3       7 TRUE          2 TRUE    92      Jump S…
#>  8 401455… 17      Cour…       3       7 FALSE         0 TRUE    131     Pullup…
#>  9 401455… 18      Kels…       3       7 FALSE         0 FALSE   155     Defens…
#> 10 401455… 19      A'ja…       3       9 TRUE          2 TRUE    110     Drivin…
#> # … with 333 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>, …
# }