Skip to contents

get_skater_leaders() retrieves information on each skater for a given set of season, game_type, and category, including but not limited to their ID, name, and statistics. Access get_seasons() for season reference.

Usage

get_skater_leaders(
  season = get_season_now()$seasonId,
  game_type = 2,
  category = "points"
)

Arguments

season

integer in YYYYYYYY

game_type

integer where 2=regular and 3=playoffs

category

string of 'assists', 'goals', 'goalsSh', 'goalsPp', 'points', 'penaltyMins', 'toi', 'plusMinus', or 'faceoffLeaders'

Value

tibble with one row per skater

Examples

playoff_toi_leaders_20242025 <- get_skater_leaders(
  season=20242025,
  game_type=3,
  category='toi'
)