Get WNBA Stats API play-by-play (Multiple Games)
Get WNBA Stats API play-by-play (Multiple Games)
wnba_pbps(
game_ids = NULL,
on_court = TRUE,
version = "v3",
nest_data = FALSE,
...
)Returns a data frame: PlayByPlay
Columns as documented in the shared wnba_players_on_court_schema table.
Game IDs
IF TRUE will be added ID of players on court
Play-by-play version - "v3" (default) or "v2". V3 returns richer data
with shot coordinates, shot values, and V3 action types. V2 is available from 2016-17 onwards.
If TRUE returns nested data by game
Additional arguments passed to an underlying function like httr.
Jason Lee
y <- c("1022200034", "1022200035" )wnba_pbps(game_ids = y, version = "v2")
Other WNBA PBP Functions:
wnba_data_pbp(),
wnba_live_pbp(),
wnba_pbp(),
wnba_playbyplayv3()