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 ──
#>  Data updated: 2026-06-13 04:22:32 UTC
#> # A tibble: 8 × 15
#>   game_id season_id date  game_date status home_team home_team_id home_team_code
#>     <dbl>     <dbl> <chr> <chr>     <chr>  <chr>            <dbl> <chr>         
#> 1     343         9 2026… Fri, May… 4      Ottawa C…            5 OTT           
#> 2     345         9 2026… Fri, May… 4      Minnesot…            2 MIN           
#> 3     344         9 2026… Sun, May… 4      Ottawa C…            5 OTT           
#> 4     347         9 2026… Tue, May… 4      Montréal…            3 MTL           
#> 5     350         9 2026… Thu, May… 4      Montréal…            3 MTL           
#> 6     351         9 2026… Sat, May… 4      Montréal…            3 MTL           
#> 7     348         9 2026… Mon, May… 4      Ottawa C…            5 OTT           
#> 8     349         9 2026… Wed, May… 4      Ottawa C…            5 OTT           
#> # ℹ 7 more variables: home_score <chr>, away_team <chr>, away_team_id <dbl>,
#> #   away_team_code <chr>, away_score <chr>, period <chr>, clock <chr>
# }