nhl_teams_rosters {nhlapi} | R Documentation |
Get rosters for teams
Description
Get rosters for teams
Usage
nhl_teams_rosters(teamIds = NULL, seasons = NULL)
Arguments
teamIds |
|
seasons |
Alternatively, also accepts Some API endpoints, notably |
Value
data.frame
, with an element called roster.roster
that in itself is a data.frame
with the roster data.
Examples
## 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)