Description Usage Arguments Value Examples
Returns the team roster, configurable for season. Convenience wrapper around getTeam(team = team, modifier = team.roster, season = season).
1 | getTeamRoster(team, season = NULL)
|
team |
The team roster to get. Required |
season |
Which season's roster to get. Optional, will get the current roster if not supplied. |
the API output of teams' rosters
1 2 3 4 5 | #See the Carolina Hurricane's roster (ID = 12)
canes <- getTeamRoster(12)
#Get their roster a few years ago
canes_past <- getTeamRoster(12, season = 20152016)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.