Description Usage Arguments Details Value Examples
Retrieves MLBAM GameDay files for a single week
1 | getDataWeekly(start = Sys.Date() - 8)
|
start |
A valid date in yyyy-mm-dd format (default Sys.Date()-8) |
Given a date, this function will retrieve data from the week starting on the specified date from the GameDay server and process them into a single data.frame.
A data.frame of class 'GameDayPlays' consisting of play-by-play data
1 2 | #Retrieve all the data from the first week of the 2013 season
ds = getDataWeekly('2013-03-31')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.