Skip to contents

This function gets 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_data_play_by_play(game_ids, batch_size = 100, pause_seconds = 15)

Arguments

game_ids

A character vector of game IDs.

batch_size

Number of requests before pausing (default: 100)

pause_seconds

Number of seconds to pause between batches (default: 15)

Value

A tibble containing combined play-by-play data for all game IDs.