Create game ids from dates.
make_gids(start = NULL, end = NULL, league = "mlb", dataset = NULL, game_ids = NULL, ...)
A start date passed as a character in ISO 8601 format. "2017-05-01"
"2017-05-01"
An end date passed as a character in ISO 8601 format. "2017-09-01"
"2017-09-01"
The league to gather gids for. The default is "mlb". Other options include "aaa" and "aa".
"mlb"
"aaa"
"aa"
The dataset to be scraped. The default is "inning_all." Other options include, "inning_hit", "linescore."
A list of user-supplied gameIds.
additional arguments
# NOT RUN { gids <- make_gids(start = "2016-06-01", end = "2016-06-01", dataset="inning_all") # }
Run the code above in your browser using DataLab