View source: R/api-interface.R
getNHLSchedule | R Documentation |
Gets the NHL schedule from the NHL API for the season(s) requested. Returns data formatted for further use. This can be slow if requesting many seasons due to the API rate limit.
getNHLSchedule(season = getCurrentSeason8())
season |
Season(s) for which the schedule is requested, as YYYY format. Defaults to current season. Accepts single years, ranges e.g.c(2010:2015) or complex ranges e.g. c(2010:2015, 2018). |
a data frame of all scheduled games for the season(s) requested, with Date, HomeTeam, AwayTeam, GameID, and GameType.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.