Download MLB data from baseballsavant.mlb.com
Source:R/download_baseballsavant.R
download_baseballsavant.Rd
Loop over five days at a time to download data from the Statcast search API at Baseball Savant. This includes swing tracking data not available through the MLB statsapi.
Arguments
- start_date
first date included in the download
- end_date
last date included in the download
- game_type
character vector of game types to include. Options are "R" (regular sesason), "F" (first-round playoff series, aka wild card), "D" (division series), "L" (league championship series), "W" (world series), "S" (spring training), "A" (all-star game), "E" (exhibition). Default is "R".
- cl
optional cluster object for parallel computation, default is NULL (not parallel)
- verbose
logical, should progress be printed to console?