Skip to contents

Retrieves recent and upcoming PWHL game scores.

Usage

pwhl_scorebar(days_back = 3, days_ahead = 3)

Arguments

days_back

Number of days back to include. Default 3.

days_ahead

Number of days ahead to include. Default 3.

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
game_idnumericUnique game identifier.
season_idnumericSeason identifier.
datecharacterGame date.
game_datecharacterGame date.
statuscharacterStatus of the game.
home_teamcharacterHome team name.
home_team_idnumericHome team identifier.
home_team_codecharacterHome team abbreviation.
home_scorecharacterHome team score.
away_teamcharacterAway team name.
away_team_idnumericAway team identifier.
away_team_codecharacterAway team abbreviation.
away_scorecharacterAway team score.
periodcharacterCurrent period for live/completed games.
clockcharacterCurrent clock time for live games.

Examples

# \donttest{
  try(pwhl_scorebar(days_back = 7, days_ahead = 7))
#> ── PWHL Scorebar ───────────────────────────────────── fastRhockey 1.0.0.9000 ──
#> ℹ Data updated: 2026-10-13 01:58:56 UTC
#> # A tibble: 23 × 15
#>    game_id season_id date       game_date   status home_team        home_team_id
#>      <dbl>     <dbl> <chr>      <chr>       <chr>  <chr>                   <dbl>
#>  1     343         9 2026-05-08 Fri, May 8  4      Ottawa Charge               5
#>  2     345         9 2026-05-08 Fri, May 8  4      Minnesota Frost             2
#>  3     344         9 2026-05-10 Sun, May 10 4      Ottawa Charge               5
#>  4     347         9 2026-05-12 Tue, May 12 4      Montréal Victoi…            3
#>  5     350         9 2026-05-14 Thu, May 14 4      Montréal Victoi…            3
#>  6     351         9 2026-05-16 Sat, May 16 4      Montréal Victoi…            3
#>  7     348         9 2026-05-18 Mon, May 18 4      Ottawa Charge               5
#>  8     349         9 2026-05-20 Wed, May 20 4      Ottawa Charge               5
#>  9     353        10 2026-11-22 Sun, Nov 22 1      PWHL Las Vegas             12
#> 10     360        10 2026-11-23 Mon, Nov 23 1      Ottawa Charge               5
#> # ℹ 13 more rows
#> # ℹ 8 more variables: home_team_code <chr>, home_score <chr>, away_team <chr>,
#> #   away_team_id <dbl>, away_team_code <chr>, away_score <chr>, period <chr>,
#> #   clock <chr>
# }