Learn R Programming

nhlscraper (version 0.2.0)

get_skater_leaders: Get skater statistics leaders by season, game-type, and category

Description

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"
)

Value

tibble with one row per skater

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'

Examples

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

Run the code above in your browser using DataLab