Learn R Programming

nhlscraper (version 0.2.0)

get_goalie_leaders: Get goalie statistics leaders by season, game-type, and category

Description

get_goalie_leaders() retrieves information on each goalie 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_goalie_leaders(
  season = get_season_now()$seasonId,
  game_type = 2,
  category = "wins"
)

Value

tibble with one row per goalie

Arguments

season

integer in YYYYYYYY

game_type

integer where 2=regular and 3=playoffs

category

string of 'wins', 'shutouts', 'savePctg', or 'goalsAgainstAverage'

Examples

Run this code
playoff_savePctg_leaders_20242025 <- get_goalie_leaders(
  season=20242025,
  game_type=3,
  category='savePctg'
)

Run the code above in your browser using DataLab