fetch_schedule: Function to get game IDs for a given time period

Description Usage Arguments Details

View source: R/fetch-schedule.R

Description

Function to get game IDs for a given time period

Usage

1
2
3
4
5
6
fetch_schedule(
  season = NULL,
  start_date = NULL,
  end_date = NULL,
  season_type = 2
)

Arguments

season

Season to query (e.g., '20152016'). Passing nothing will return the current day

start_date

A beginning date to start (format - '2019-03-04')

end_date

A last date of the range (format - '2019-03-04')

season_type

The season type, where 1 = preseason, 2 = regular season, 3 = playoffs, 4 = all-star (Default 2)

Details

If season, start_date, and end_date are NOT provided, the default will just be the current date


anthonyshook/nhldata documentation built on Feb. 22, 2021, 3:51 a.m.