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))
#> Error in .euro_check_status(resp) : 
#>   liguemagnus.com/wp-admin/admin-ajax.php answered HTTP 403:
#> <html><body><h1>403 Forbidden</h1> Request forbidden by administrative rules.
#> Interdiction d'acceder a cette ressource </body></html>
# }