This function gets NBA box score data for the specified game_ids
, returning a data frame with
all selected measure_types
.
Creates batches of game_ids
and pauses between batches to avoid timeout issues.
Arguments
- game_ids
A character vector of game IDs.
- measure_types
A character vector of selected box score options. Each option corresponds to an entry in
box_score_types
. Valid options include:"Traditional" - Box score with traditional statistics.
"Advanced" - Box score with advanced statistics.
"Misc" - Box score with miscellaneous statistics.
"Scoring" - Box score with scoring statistics.
"Usage" - Box score with usage statistics.
"Factors" - Box score with four factors statistics.
"Tracking" - Box score with player tracking statistics.
"Defensive" - Box score with defensive statistics.
"Hustle" - Box score with hustle statistics.
- batch_size
Number of requests before pausing (default: 100)
- pause_seconds
Number of seconds to pause between batches (default: 15)