This function gets win probability play-by-play data for a vector of game IDs and returns a
combined tibble.
Creates batches of game_ids
and pauses between batches to avoid timeout issues.
Usage
nba_win_probability(game_ids, batch_size = 100, pause_seconds = 15)
Arguments
- game_ids
A character vector of game IDs.
- batch_size
Number of requests per batch (default: 100).
- pause_seconds
Number of seconds to pause between batches (default: 15).
Value
A tibble containing combined win probability play-by-play data for all game IDs.