fetch_schedule: fetch_schedule

Description Usage Arguments Value Examples

Description

fetch schedule info between given dates from the nhl api

Usage

1
fetch_schedule(start_date = "", end_date = "", team_id = "")

Arguments

start_date

a string written as mm/dd/yyyy that represents the start date of the desired schedule period, default to empty

end_date

a string written as mm/dd/yyyy that represents the end date of the desired schedule period, default to empty

team_id

a number or string that represent the id of an nhl team, if not feed return schedule for all teams

Value

data.table that contains all schedule info for the period between the given dates, return the schedule for the current day if no dates are passed as arguments

Examples

1
2
3
fetch_schedule("03/16/2019", "03/18/2019")
fetch_schedule(team_id = 8)
fetch_schedule("01/16/2019", "03/18/2019", 8)

N1KG/rockey documentation built on May 28, 2019, 6:05 p.m.