nhl_tournaments {nhlapi} | R Documentation |
Retrieve data on tournaments from the API
Description
Retrieve data on tournaments from the API
Usage
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)
Arguments
tournamentTypes |
Those are exposed via shorthand functions |
seasons |
Alternatively, also accepts Some API endpoints, notably |
expand |
|
Value
list
, with information on tournaments, one element per
tournamentTypes
and parameters (seasons
and expand
)
combinations.
Functions
-
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.
Examples
## 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)