nhl_make_seasons {nhlapi} | R Documentation |
The NHL API wants seasons defined in format
"YYYYZZZZ"
where ZZZZ = YYYY + 1
. This is a helper to take
a vector of years in "YYYY"
format and create a vector of
such seasons to be used with the API.
nhl_make_seasons(seasons = 1950:2019)
seasons |
Alternatively, also accepts Some API endpoints, notably |
character()
, vector of seasons suited for the NHL API.
nhlapi:::nhl_make_seasons()
nhlapi:::nhl_make_seasons(1995:2000)
nhlapi:::nhl_make_seasons(c(1995, 2015))
nhlapi:::nhl_make_seasons(c("1995", "2015"))