Description Usage Arguments Value Examples
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.
1 | nhl_make_seasons(seasons = 1950:2019)
|
seasons |
Alternatively, also accepts Some API endpoints, notably |
character()
, vector of seasons suited for the NHL API.
1 2 3 4 | nhlapi:::nhl_make_seasons()
nhlapi:::nhl_make_seasons(1995:2000)
nhlapi:::nhl_make_seasons(c(1995, 2015))
nhlapi:::nhl_make_seasons(c("1995", "2015"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.