Skip to contents

Retrieves career and season-by-season statistics for a PWHL player.

Usage

pwhl_player_stats(player_id)

Arguments

player_id

Numeric player ID

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
season_idnumericSeason identifier.
season_namecharacterSeason name.
shortnamecharacterShort season name.
playoffcharacterWhether the row is playoff statistics.
careercharacterWhether the row is career totals.
max_start_datecharacterLatest game start date for the season.
veteran_statuscharacterPlayer veteran status.
veterancharacterWhether the player is a veteran.
goals_againstnumericGoals against (goalie).
shootout_goals_againstcharacterShootout goals against.
shootout_savescharacterShootout saves made.
goals_against_averagenumericGoals against average (goalie).
games_playednumericGames played.
minutes_playednumericMinutes played.
seconds_playedcharacterSeconds played.
shots_againstnumericShots faced (goalie).
winsnumericWins (goalie).
lossesnumericLosses (goalie).
tiescharacterTies (goalie).
ot_lossescharacterOvertime losses (goalie).
total_lossescharacterTotal losses (goalie).
shootout_lossescharacterShootout losses (goalie).
otcharacterOvertime results.
sosavepctcharacterShootout save percentage.
shootout_shotscharacterShootout shots faced.
shutoutsnumericShutouts recorded (goalie).
savesnumericSaves made (goalie).
savepctnumericSave percentage (goalie).
goalsnumericGoals scored.
assistsnumericAssists.
pointsnumericTotal points (goals + assists).
penalty_minutesnumericPenalty minutes.
team_namecharacterTeam name.
team_codecharacterTeam abbreviation.
team_citycharacterTeam city.
team_nicknamecharacterTeam nickname.
team_idcharacterUnique team identifier.
divisioncharacterTeam division.
shotspctcharacterShooting percentage.
gaacharacterGoals against average (goalie).
player_idnumericUnique player identifier.
stat_typecharacterStatistic type ("regular"/"playoff").

Examples

# \donttest{
  try(pwhl_player_stats(player_id = 28))
#> ── PWHL Player Season Stats ─────────────────────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-06-13 03:26:32 UTC
#> # A tibble: 8 × 42
#>   season_id season_name   shortname playoff career max_start_date veteran_status
#>       <dbl> <chr>         <chr>     <chr>   <chr>  <chr>          <chr>         
#> 1         8 2025-26 Regu… 2025-26 … 0       1      2025-11-21     2             
#> 2         5 2024-25 Regu… 2024-25 … 0       1      2024-11-25     2             
#> 3         1 2024 Regular… 2024 Reg  0       1      2023-11-01     2             
#> 4        14 Total         Total     0       3      6072           6             
#> 5         9 2026 Playoffs 2026 Pla… 1       1      2026-04-28     2             
#> 6         6 2025 Playoffs 2025 Pla… 1       1      2025-05-06     2             
#> 7         3 2024 Playoffs 2024 Pla… 1       1      2024-05-06     2             
#> 8        18 Total         Total     1       3      6075           6             
#> # ℹ 35 more variables: veteran <chr>, goals_against <dbl>,
#> #   shootout_goals_against <chr>, shootout_saves <chr>,
#> #   goals_against_average <dbl>, games_played <dbl>, minutes_played <dbl>,
#> #   seconds_played <chr>, shots_against <dbl>, wins <dbl>, losses <dbl>,
#> #   ties <chr>, ot_losses <chr>, total_losses <chr>, shootout_losses <chr>,
#> #   ot <chr>, sosavepct <chr>, shootout_shots <chr>, shutouts <dbl>,
#> #   saves <dbl>, savepct <dbl>, goals <dbl>, assists <dbl>, points <dbl>, …
# }