Skip to contents

Phases of a competition (regular season, playoffs, relegation), with the phase_id the phase-scoped routes take.

Usage

magnus_phases(season, return_parsed = TRUE)

Arguments

season

Season by its END year (2027 = 2026-27), sent as the season's competition_id. Coverage starts in 2020-21 (2021); an earlier season, or one the federation does not list, is fastRhockey_no_data.

return_parsed

Parse the payload into a tibble (default TRUE). Pass FALSE for the raw JSON envelope as a list.

Value

A tibble (return_parsed = TRUE), else the raw envelope list:

col_nametypedescription
phase_idintegerPhase id (integer), the value the phase_id argument of magnus_teams, magnus_rounds, magnus_round_games, magnus_standings and magnus_schedule takes. Ids change every season.
phasecharacterPhase name in French (e.g., "Saison régulière" = regular season).
phase_type_codecharacterPhase type code: C (championnat, round robin) or T (tableau, playoff bracket).
visiblelogicalWhether the phase is shown on the public site.
competitioncharacterName of the competition (season) the phase belongs to.
n_teamsintegerNumber of teams in the phase.
overtimelogicalWhether tied games go to overtime in the phase.
games_per_matchupintegerGames each pair of teams plays in the phase.

Examples

# \donttest{
  try(magnus_phases(season = 2027))
#> ── Ligue Magnus Phases Information from liguemagnus.com ────────────────────────
#> ℹ Data updated: 2026-10-13 01:56:49 UTC
#> # A tibble: 1 × 8
#>   phase_id phase            phase_type_code visible competition n_teams overtime
#>      <int> <chr>            <chr>           <lgl>   <chr>         <int> <lgl>   
#> 1      714 Saison régulière C               TRUE    Synerglace…      12 TRUE    
#> # ℹ 1 more variable: games_per_matchup <int>
# }