getNHLScores: Get NHL Scores

View source: R/api-interface.R

getNHLScoresR Documentation

Get NHL Scores

Description

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.

Usage

getNHLScores(gameIDs = NULL, schedule = HockeyModel::schedule, progress = TRUE)

Arguments

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

Value

a data frame with Date, HomeTeam, AwayTeam, GameID, HomeGoals, AwayGoals, OTStatus and GameType


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.