Skip to contents

Standings of a phase, one row per team in rank order. wins and losses are regulation results; overtime and shootout results are ot_wins and ot_losses.

Usage

magnus_standings(phase_id, return_parsed = TRUE)

Arguments

phase_id

Phase id (phase_id of magnus_phases()), e.g. 714.

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
rankintegerRank in the standings table.
team_idintegerTeam id (integer join key).
teamcharacterShort team name as the table publishes it (e.g., "MARSEILLE").
team_abbreviationcharacterTeam abbreviation.
team_participant_idintegerTeam participant id in this phase (integer; joins home_team_participant_id / away_team_participant_id of the schedule).
games_playedintegerGames played in the table's scope.
winsintegerWins in regulation.
ot_winsintegerWins in overtime or a shootout.
ot_lossesintegerLosses in overtime or a shootout.
lossesintegerLosses in regulation.
tiesintegerNumber of tied games.
pointsintegerPoints in the standings table.
goals_forintegerGoals scored (total).
goals_againstintegerGoals allowed (goals against).
penalty_minutesintegerPenalty minutes.
last_resultscharacterForm guide: the last results as W (win), L (loss) or T (tie) letters, in the order the table lists them.
standings_idintegerStandings table id (integer).

Examples

# \donttest{
  try(magnus_standings(phase_id = 714))
#> 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>
# }