View source: R/api-interface.R
getNHLScores | R Documentation |
Get the NHL game scores from the NHL API for any game(s) with a final score. Returns data formatted for future use. Requires gameID(s) be provided.This can be slow if requesting many games due to the API rate limit.
getNHLScores(gameIDs = NULL, schedule = HockeyModel::schedule, progress = TRUE)
gameIDs |
Game IDs (10 digit number). |
schedule |
optional, provide a schedule if not using the HockeyModel::schedule |
progress |
whether to show a progress bar. Requires the 'progress' package installed |
a data frame with Date, HomeTeam, AwayTeam, GameID, HomeGoals, AwayGoals, OTStatus and GameType
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.