Description Usage Arguments Value Functions Examples
View source: R/nhl_tournaments.R
Retrieve data on tournaments from the API
1 2 3 4 5 6 7 | nhl_tournaments(tournamentTypes, seasons = NULL, expand = NULL)
nhl_tournaments_playoffs(seasons = NULL, expand = NULL)
nhl_tournaments_olympics(seasons = NULL, expand = NULL)
nhl_tournaments_worldcups(seasons = NULL, expand = NULL)
|
tournamentTypes |
Those are exposed via shorthand functions
|
seasons |
Alternatively, also accepts Some API endpoints, notably |
expand |
|
list
, with information on tournaments, one element per
tournamentTypes
and parameters (seasons
and expand
)
combinations.
nhl_tournaments_playoffs
: Shortcut to get information on playoffs.
nhl_tournaments_olympics
: Shortcut to get information on Olympics.
nhl_tournaments_worldcups
: Shortcut to get information on world cups.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
# Get info on playoffs in one season
nhl_tournaments("playoffs", 2015)
# Get info on playoffs in 2 seasons, expand rounds
nhl_tournaments("playoffs", 2015:2016, "round.series")
## End(Not run)
## Not run:
nhl_tournaments_playoffs(2015:2016, "round.series")
## End(Not run)
## Not run:
nhl_tournaments_olympics(2009, "round.series")
## End(Not run)
## Not run:
nhl_tournaments_worldcups(2003)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.