Description Usage Arguments Value Examples
Get rosters for teams
1 | nhl_teams_rosters(teamIds = NULL, seasons = NULL)
|
teamIds |
|
seasons |
Alternatively, also accepts Some API endpoints, notably |
data.frame
, with an element called roster.roster
that in itself is a data.frame
with the roster data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Current rosters for all teams
nhl_teams_rosters()
# Rosters for all teams for past seasons
nhl_teams_rosters(seasons = c("19931994", "19931994"))
# Roster for Devils and Islanders
nhl_teams_rosters(
teamIds = 1:2,
seasons = c("19931994", "19931994")
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.