data_query - QMIND-Team/Sabermetrics GitHub Wiki

statcastData(pitcherId, stats, dateRange)

Gets the given stats from Baseball Savant over the range given for the player

Inputs:

pitcherId: An MLBAM player Id

stats: A list of stat names

dateRange: A list of 2 dates in "YYYY-MM-DD" format

Outputs:

A 2-D dataframe of stats across that range for that player