get_team_roster | R Documentation |
get_team_roster()
retrieves information on each player for a given set of team
, season
, and player_type
, including but not limited to their ID, name, bio-metrics, and birth date and location. Access get_teams()
for team
and get_team_seasons()
for season
references.
get_team_roster(
team = "BOS",
season = get_season_now()$seasonId,
player_type = "forwards"
)
team |
string 3-letter Code |
season |
integer in YYYYYYYY |
player_type |
string of 'forwards', 'defensemen', or 'goalies' |
tibble with one row per player
COL_defensemen_20242025 <- get_team_roster(
team='COL',
season=20242025,
player_type='defensemen'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.