Skip to contents

Returns franchise season-by-season results from the NHL Records API (https://records.nhl.com/site/api/franchise-season-results).

Usage

nhl_records_franchise_season_results(franchise_id = NULL, cayenne_exp = NULL)

Arguments

franchise_id

Optional integer franchise ID. When supplied it is translated into a cayenneExp=franchiseId={franchise_id} filter unless cayenne_exp is already provided.

cayenne_exp

Optional Cayenne filter expression string. Takes precedence over franchise_id when both are supplied.

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
idintegerUnique season result record identifier.
conference_abbrevcharacterConference abbreviation.
conference_namecharacterConference name.
conference_sequenceintegerConference standings position.
decisioncharacterSeries/season decision indicator.
division_abbrevcharacterDivision abbreviation.
division_namecharacterDivision name.
division_sequenceintegerDivision standings position.
final_playoff_roundintegerFinal playoff round reached.
franchise_idintegerUnique franchise identifier.
game_type_idintegerGame type identifier (regular/playoffs).
games_playedintegerGames played in the season.
goalsintegerGoals scored.
goals_againstintegerGoals against.
home_lossesintegerLosses at home.
home_overtime_lossesintegerOvertime losses at home.
home_tiesintegerTies at home.
home_winsintegerWins at home.
in_playoffslogicalWhether the season reached the playoffs.
league_sequenceintegerLeague standings position.
lossesintegerTotal losses.
overtime_lossesintegerTotal overtime losses.
penalty_minutesintegerPenalty minutes.
playoff_roundintegerPlayoff round identifier.
pointsintegerStandings points earned.
road_lossesintegerLosses on the road.
road_overtime_lossesintegerOvertime losses on the road.
road_tiesintegerTies on the road.
road_winsintegerWins on the road.
season_idintegerSeason identifier.
series_abbrevcharacterPlayoff series abbreviation.
series_titlecharacterPlayoff series title.
shutoutsintegerShutouts recorded.
team_idintegerUnique team identifier.
team_namecharacterTeam name.
tiesintegerTotal ties.
tri_codecharacterTeam three-letter code.
winsintegerTotal wins.

Examples

# \donttest{
  try(nhl_records_franchise_season_results())
#> ── NHL Records Franchise Season Results ─────────────────── fastRhockey 1.0.0 ──
#>  Data updated: 2026-06-13 04:21:44 UTC
#> # A tibble: 2,833 × 38
#>       id conference_abbrev conference_name conference_sequence decision
#>    <int> <chr>             <chr>                         <int> <chr>   
#>  1  2476 NA                NA                                0 L       
#>  2  2477 NA                NA                                0 NA      
#>  3  2478 NA                NA                                0 NA      
#>  4  2479 NA                NA                                0 W       
#>  5  2480 NA                NA                                0 L       
#>  6  2481 NA                NA                                0 W       
#>  7  2482 NA                NA                                0 W       
#>  8  2483 NA                NA                                0 L       
#>  9  2484 NA                NA                                0 NA      
#> 10  2485 NA                NA                                0 W       
#> # ℹ 2,823 more rows
#> # ℹ 33 more variables: division_abbrev <chr>, division_name <chr>,
#> #   division_sequence <int>, final_playoff_round <int>, franchise_id <int>,
#> #   game_type_id <int>, games_played <int>, goals <int>, goals_against <int>,
#> #   home_losses <int>, home_overtime_losses <int>, home_ties <int>,
#> #   home_wins <int>, in_playoffs <lgl>, league_sequence <int>, losses <int>,
#> #   overtime_losses <int>, penalty_minutes <int>, playoff_round <int>, …
# }