Skip to contents

Get ESPN women's college basketball play by play data

Usage

espn_wbb_pbp(game_id)

Arguments

game_id

Game ID

Value

Returns a play-by-play data frame

Plays

col_nametypes
idcharacter
sequence_numbercharacter
textcharacter
away_scoreinteger
home_scoreinteger
scoring_playlogical
score_valueinteger
wallclockcharacter
shooting_playlogical
type_idinteger
type_textcharacter
period_numberinteger
period_display_valuecharacter
clock_display_valuecharacter
team_idinteger
coordinate_x_rawnumeric
coordinate_y_rawnumeric
coordinate_xnumeric
coordinate_ynumeric
play_idcharacter
athlete_id_1integer
athlete_id_2integer
home_team_idinteger
home_team_mascotcharacter
home_team_namecharacter
home_team_abbrevcharacter
home_team_logocharacter
home_team_logo_darkcharacter
home_team_full_namecharacter
home_team_colorcharacter
home_team_alternate_colorcharacter
home_team_scoreinteger
home_team_winnerlogical
home_team_recordcharacter
away_team_idinteger
away_team_mascotcharacter
away_team_namecharacter
away_team_abbrevcharacter
away_team_logocharacter
away_team_logo_darkcharacter
away_team_full_namecharacter
away_team_colorcharacter
away_team_alternate_colorcharacter
away_team_scoreinteger
away_team_winnerlogical
away_team_recordcharacter
game_idinteger
seasoninteger
season_typeinteger
game_dateDate
game_date_timePOSIXct

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_wbb_pbp(game_id = 401498717))
#> ── ESPN WBB Play-by-Play Information from ESPN.com ───────────── wehoop 2.1.0 ──
#>  Data updated: 2024-07-21 23:46:51 UTC
#> # A tibble: 369 × 47
#>    id       sequence_number text  away_score home_score scoring_play score_value
#>    <chr>    <chr>           <chr>      <int>      <int> <lgl>              <int>
#>  1 4014987… 101905701       Agne…          0          0 FALSE                  3
#>  2 4014987… 101906001       Isab…          0          0 FALSE                  0
#>  3 4014987… 101907101       Alis…          0          0 FALSE                  2
#>  4 4014987… 101907301       Came…          0          0 FALSE                  0
#>  5 4014987… 101908001       Hale…          0          0 FALSE                  2
#>  6 4014987… 101908201       Kenn…          0          0 FALSE                  0
#>  7 4014987… 101909401       Jenn…          0          0 FALSE                  2
#>  8 4014987… 101909402       Hale…          0          0 FALSE                  0
#>  9 4014987… 101909801       Hale…          0          0 FALSE                  0
#> 10 4014987… 101914101       Agne…          3          0 TRUE                   3
#> # ℹ 359 more rows
#> # ℹ 40 more variables: wallclock <chr>, shooting_play <lgl>, type_id <int>,
#> #   type_text <chr>, period_number <int>, period_display_value <chr>,
#> #   clock_display_value <chr>, team_id <int>, play_id <chr>,
#> #   athlete_id_1 <int>, athlete_id_2 <int>, 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>, …
# }