Skip to contents

Download Statcast data within a range of dates

Usage

statcast(
  start = Sys.Date() - 1,
  end = NULL,
  batter = NULL,
  pitcher = NULL,
  process = FALSE,
  names = FALSE,
  verbose = FALSE
)

statcast_bbd(start = Sys.Date() - 1, end = NULL, verbose = FALSE)

Arguments

start

Start date of search.

end

End data of search. Defaults to NULL, which stops search at start date.

batter

Statcast player ID for batter of interest. Defaults to NULL.

pitcher

Statcast player ID for pitcher of interest. Defaults to NULL.

process

Controls processing of data. Defaults to FALSE. If TRUE, data is processed using the statcast_min_process() function.

names

Controls processing of names. Defaults to FALSE. If TRUE, names are processed using the statcast_add_names() function.

verbose

Controls messaging to the user. Defaults to FALSE which provides no message. When TRUE, informs user when each date begins downloading.

Value

An object with class table_class() containing all Statcast events between the start date and end date inclusive.