getNHLSchedule: Get NHL Schedule

View source: R/api-interface.R

getNHLScheduleR Documentation

Get NHL Schedule

Description

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.

Usage

getNHLSchedule(season = getCurrentSeason8())

Arguments

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).

Value

a data frame of all scheduled games for the season(s) requested, with Date, HomeTeam, AwayTeam, GameID, and GameType.


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