Skip to contents

Get roster by team, season, and player-type

Usage

get_team_roster(
  team = "BOS",
  season = get_season_now()$seasonId,
  player_type = "forwards"
)

Arguments

team

string 3-letter team code

season

integer Season in YYYYYYYY

player_type

string Player-type of 'forwards', 'defensemen', or 'goalies'

Value

tibble with one row per player

Examples

COL_defensemen_20242025 <- get_team_roster(
  team='COL',
  season=20242025,
  player_type='defensemen'
)