Learn R Programming

baseballr (version 0.2.0)

scrape_statcast_savant_pitcher: Query Statcast and PITCHf/x Data for Pitchers from baseballsavant.mlb.com

Description

This function allows you to query Statcast and PITCHf/x data as provided on baseballsavant.mlb.com and have that data returned as a dataframe.

Usage

scrape_statcast_savant_pitcher(start_date, end_date, pitcherid)

Arguments

start_date
Date of first game for which you want data. Format must be in Y-d-m format.
end_date
Date of last game for which you want data. Format must be in Y-d-m format.
pitcherid
The MLBAM ID for the pitcher who's data you want to query.

Examples

Run this code
## Not run: scrape_statcast_savant_pitcher(start_date = "2016-04-06", end_date = "2016-04-15", pitcherid = 592789)

Run the code above in your browser using DataLab