getSchedule: Get Schedule

Description Usage Arguments Value Examples

Description

Get the NHL schedule for a team, a date (range) or with additional information.

Usage

1
2
getSchedule(team = NULL, startDate = NULL, endDate = NULL,
  scheduleType = NULL)

Arguments

team

Specific team's schedule to retrieve. optional, numeric

startDate

A single date or a date range may be entered, optional, must be coercable with as.Date()

endDate

If a date range is requested, the end date. For a single date, this may be left out.

scheduleType

additional schedule information may be requested:

broadcasts

show a list of broadcasts for the game(s)

linescore

show a linescore for completed game(s)

ticket

show different ticket purchase options for upcoming game(s)

Value

The API output of schedules

Examples

1
2
3
4
5
#see the schedule:
schedule<-getSchedule()

#see the schedule linescores:
linescores <- getSchedule(scheduleType = 'linescore')

pbulsink/nhlRapi documentation built on June 27, 2019, 6:35 p.m.