Skip to contents

One row per NHL group per season it existed, with the name, abbreviation and parent group as of that season (not today's). Published to the nhl_groups release tag on the sportsdataverse-data releases. Seasons are keyed by their end year (2025 = 2024-25).

Usage

load_nhl_group_seasons(..., dbConnection = NULL, tablename = NULL)

Arguments

...

Additional arguments passed to an underlying function that writes the data into a database.

dbConnection

A DBIConnection object, as returned by DBI::dbConnect()

tablename

The name of the data table within the database

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
leaguecharacterLeague key.
group_idcharacterSportsDataverse group id, {league}:{slug}.
seasonintegerSeason (end year).
levelcharacterGroup level: league, conference or division.
namecharacterGroup name as of that season.
short_namecharacterShort name as of that season.
abbreviationcharacterAbbreviation as of that season.
parent_group_idcharacterParent group id as of that season (division, conference, league).
n_teamsintegerMember teams that season.

Examples

# \donttest{
  try(load_nhl_group_seasons())
#> ── NHL group seasons from the SportsDataverse data repo ─── fastRhockey 1.0.0 ──
#> ℹ Data updated: 2026-10-08 12:57:45 UTC
#> # A tibble: 478 × 9
#>    league group_id    season level name  short_name abbreviation parent_group_id
#>    <chr>  <chr>        <int> <chr> <chr> <chr>      <chr>        <chr>          
#>  1 nhl    nhl:adams-…   1975 divi… Adam… Adams      ADM          nhl:eastern    
#>  2 nhl    nhl:adams-…   1976 divi… Adam… Adams      ADM          nhl:eastern    
#>  3 nhl    nhl:adams-…   1977 divi… Adam… Adams      ADM          nhl:eastern    
#>  4 nhl    nhl:adams-…   1978 divi… Adam… Adams      ADM          nhl:eastern    
#>  5 nhl    nhl:adams-…   1979 divi… Adam… Adams      ADM          nhl:eastern    
#>  6 nhl    nhl:adams-…   1980 divi… Adam… Adams      ADM          nhl:eastern    
#>  7 nhl    nhl:adams-…   1981 divi… Adam… Adams      ADM          nhl:eastern    
#>  8 nhl    nhl:adams-…   1982 divi… Adam… Adams      ADM          nhl:eastern    
#>  9 nhl    nhl:adams-…   1983 divi… Adam… Adams      ADM          nhl:eastern    
#> 10 nhl    nhl:adams-…   1984 divi… Adam… Adams      ADM          nhl:eastern    
#> # ℹ 468 more rows
#> # ℹ 1 more variable: n_teams <int>
# }