# NOT RUN {
# Get current schedule
nhl_schedule()
# Get schedule for historical seasons
nhl_schedule(seasons = 2015:2016)
# Get schedule for a date range
nhl_schedule(startDate = "2018-01-02", endDate = "2018-01-02")
# Get schedule for a date range, specific teams
# and expand on line scores
nhl_schedule(
startDate = "2018-01-02",
endDate = "2018-01-02",
teamIds = c(29, 30),
expand = "schedule.linescore"
)
# }
# NOT RUN {
# }
# NOT RUN {
nhl_schedule_today()
# }
# NOT RUN {
# Schedule for seasons starting in 2015 and 2016
nhl_schedule_seasons(2015:2016)
# Schedule for seasons starting in 2015 and 2016
# Only 1 team and expand line scores
nhl_schedule_seasons(
2015:2016,
teamIds = 1,
expand = "schedule.linescore"
)
# }
# NOT RUN {
# Schedule for October and November 2015
nhl_schedule_date_range(
startDate = "2015-10-01",
endDate = "2015-11-30"
)
# Schedule for October and November 2015
# Regular seasons only, specific team and expand line scores
nhl_schedule_date_range(
startDate = "2015-10-01", endDate = "2015-11-30",
gameTypes = "R",
teamIds = 2,
expand = "schedule.linescore"
)
# }
Run the code above in your browser using DataLab