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 = 401244185))
#> ── ESPN WNBA Play-by-Play Information from ESPN.com ──────────── wehoop 1.5.0 ──
#>  Data updated: 2022-06-17 12:06:32 UTC
#> # A tibble: 388 × 48
#>    shooting_play sequence_number home_score scoring_play away_score id     text 
#>    <lgl>         <chr>                <int> <lgl>             <int> <chr>  <chr>
#>  1 FALSE         4                        0 FALSE                 0 40124… Caro…
#>  2 FALSE         7                        0 FALSE                 0 40124… Nata…
#>  3 FALSE         9                        0 FALSE                 0 40124… Nata…
#>  4 TRUE          10                       0 FALSE                 0 40124… Dani…
#>  5 FALSE         11                       0 FALSE                 0 40124… Caro…
#>  6 TRUE          12                       0 TRUE                  2 40124… Caro…
#>  7 TRUE          13                       0 FALSE                 2 40124… Sue …
#>  8 FALSE         14                       0 FALSE                 2 40124… Las …
#>  9 TRUE          15                       0 TRUE                  4 40124… A'ja…
#> 10 FALSE         17                       0 FALSE                 4 40124… Ange…
#> # … with 378 more rows, and 41 more variables: score_value <int>,
#> #   period_display_value <chr>, period_number <int>, coordinate_x <int>,
#> #   coordinate_y <int>, clock_display_value <chr>, team_id <chr>,
#> #   type_id <chr>, type_text <chr>, 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>, …
# }