nhl_url_players_seasons {nhlapi} | R Documentation |
Create an NHL API URL for players' seasons statistics
Description
Create an NHL API URL for players' seasons statistics
Usage
nhl_url_players_seasons(playerIds, seasons, playoffs = FALSE)
Arguments
playerIds |
|
seasons |
Alternatively, also accepts Some API endpoints, notably |
playoffs |
|
Details
If multiple players and seasons are provided, URLs will be created for all combinations of players and seasons.
Examples
# Joe Sakic, regular season 1995/1996
nhlapi:::nhl_url_players_seasons(8451101L, 1995)
# Joe Sakic, playoffs 1995/1996, 1996/1997 and 1997/1998
nhlapi:::nhl_url_players_seasons(
8451101L,
1995:1997,
playoffs = TRUE
)