Extract a table of MLB or AAA games within a specified date range (must be same calendar year).
Usage
extract_schedule(
start_date,
end_date,
level = c("mlb", "aaa"),
game_type = "R"
)
Arguments
- start_date
first date included in the download
- end_date
last date included in the download
- level
character string, "mlb" (default) or "aaa"
- 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".