Skip to contents

Retrieves game-by-game statistics for a PWHL player in a given season.

Usage

pwhl_player_game_log(
  player_id,
  season = most_recent_pwhl_season(),
  game_type = "both"
)

Arguments

player_id

Numeric player ID

season

Season (YYYY) to pull the game log from, the concluding year in XXXX-YY format. Defaults to most_recent_pwhl_season().

game_type

Game type: "both" (default), "regular", "playoffs", or "preseason". When "both", the player's regular-season and playoff game logs are combined and labeled by a game_type column. Game types the player has no games in (e.g. playoffs for a non-qualifying team) are omitted rather than erroring.

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
g_monthcharacterMonth the game was played.
idnumericUnique game identifier.
home_teamcharacterHome team identifier.
visiting_teamcharacterVisiting team identifier.
date_playedcharacterDate the game was played.
homenumericWhether the player's team was home.
goalienumericWhether the player was the goalie.
home_team_codecharacterHome team abbreviation.
home_team_namecharacterHome team name.
home_divisioncharacterHome team division.
visiting_team_codecharacterVisiting team abbreviation.
visiting_team_namecharacterVisiting team name.
visiting_divisioncharacterVisiting team division.
goals_againstnumericGoals against (goalie).
seconds_playedcharacterSeconds played in the game.
winnumericWhether the game was a win (goalie).
tiecharacterWhether the game was a tie (goalie).
lossnumericWhether the game was a loss (goalie).
total_lossescharacterTotal losses to date (goalie).
shutoutcharacterWhether the game was a shutout (goalie).
ot_losscharacterWhether the game was an overtime loss.
shootout_losscharacterWhether the game was a shootout loss.
savesnumericSaves made (goalie).
shots_againstnumericShots faced (goalie).
shootout_savescharacterShootout saves made.
shootout_goals_againstcharacterShootout goals against.
shootout_shotscharacterShootout shots faced.
goalsnumericGoals scored.
assistsnumericAssists.
pimcharacterPenalty minutes.
pointsnumericTotal points (goals + assists).
gaacharacterGoals against average (goalie).
svpctcharacterSave percentage (goalie).
shootout_shots_percentagecharacterShootout save percentage.
penalty_minutesnumericPenalty minutes.
minutescharacterMinutes played.
player_teamcharacterThe player's team.
player_idnumericUnique player identifier.
game_typecharacterGame type the row belongs to ("regular"/"playoffs").

Examples

# \donttest{
  try(pwhl_player_game_log(player_id = 28, season = 2025))
#> ── PWHL Player Game Log ─────────────────────────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-06-13 03:26:31 UTC
#> # A tibble: 25 × 39
#>    g_month    id home_team visiting_team date_played  home goalie home_team_code
#>    <chr>   <dbl> <chr>     <chr>         <chr>       <dbl>  <dbl> <chr>         
#>  1 Novemb…   106 3         5             2024-11-30      1      1 MTL           
#>  2 Decemb…   110 3         4             2024-12-04      1      1 MTL           
#>  3 Decemb…   119 2         3             2024-12-28      0      1 MIN           
#>  4 Decemb…   121 3         1             2024-12-30      1      1 MTL           
#>  5 January   173 1         3             2025-01-05      0      1 BOS           
#>  6 January   174 6         3             2025-01-08      0      1 TOR           
#>  7 January   131 3         2             2025-01-17      1      1 MTL           
#>  8 January   176 3         5             2025-01-19      1      1 MTL           
#>  9 January   137 3         5             2025-01-29      1      1 MTL           
#> 10 Februa…   141 4         3             2025-02-02      0      1 NY            
#> # ℹ 15 more rows
#> # ℹ 31 more variables: home_team_name <chr>, home_division <chr>,
#> #   visiting_team_code <chr>, visiting_team_name <chr>,
#> #   visiting_division <chr>, goals_against <dbl>, seconds_played <chr>,
#> #   win <dbl>, tie <chr>, loss <dbl>, total_losses <chr>, shutout <chr>,
#> #   ot_loss <chr>, shootout_loss <chr>, saves <dbl>, shots_against <dbl>,
#> #   shootout_saves <chr>, shootout_goals_against <chr>, shootout_shots <chr>, …
# }