Learn R Programming

nhlscraper (version 0.2.0)

get_player_game_log: Get game-log by player, season, and game-type

Description

get_player_game_log() retrieves information on each game for a given set of player, season, and game_type, including but not limited to their ID, date, and statistics. Access get_players() for player and get_seasons() for season references.

Usage

get_player_game_log(
  player = 8480039,
  season = get_season_now()$seasonId,
  game_type = 2
)

Value

tibble with one row per game

Arguments

player

integer Player ID

season

integer in YYYYYYYY

game_type

integer where 2=regular and 3=playoffs

Examples

Run this code
playoff_Mikko_Rantanen_gl_20242025 <- get_player_game_log(
  player=8478420,
  season=20242025,
  game_type=3
)

Run the code above in your browser using DataLab