Skip to contents

Game roster from the game sheet: one row per dressed player, with the person id, the per-game participant id, jersey, licence number, position, captaincy and MVP flag. player_id (the person) is stable across games; player_participant_id is this game's roster entry, the key the sheet's on-ice lists and MVPs use.

Usage

magnus_lineups(game_id, return_parsed = TRUE)

Arguments

game_id

Game id (game_id of magnus_schedule()), e.g. 77779 (2026-27, shootout and MVPs); also sampled: 68838, 865.

return_parsed

Parse the payload into a tibble (default TRUE). Pass FALSE for the game sheet extracted from the page's embedded JSON, as a list.

Value

A tibble (return_parsed = TRUE; zero rows for an empty sheet), else the game sheet list:

col_nametypedescription
game_idintegerGame id (integer join key).
team_idintegerTeam id (integer).
home_awaycharacterThe team's side: home or away.
player_idintegerPerson id (integer; joueurs[].id = personne.id), stable across games; the player key of every Magnus frame.
player_participant_idintegerThe player's roster entry in THIS game (integer; changes every game), the key the sheet's on-ice lists and MVPs use; never join across games on it.
player_namecharacterPlayer name (SURNAME First).
jersey_numbercharacterJersey number worn in this game (string as published).
registered_jersey_numbercharacterRegistered jersey number of the person; can differ from the one worn.
licence_numbercharacterFFHG licence number (string; keeps leading zeros).
position_codecharacterPosition code: A (attaquant), D (défenseur), GB (gardien de but).
positioncharacterPosition in English: forward, defence or goalie.
captaincycharacterC (captain) or A (alternate captain); null otherwise.
is_mvplogicalWhether the player was named his team's MVP of the game.
photo_urlcharacterPhoto thumbnail URL of the player.

Examples

# \donttest{
  try(magnus_lineups(game_id = 77779))
#> Error in .euro_check_status(resp) : 
#>   liguemagnus.com/rencontre/77779/ answered HTTP 403: <html><body><h1>403
#> Forbidden</h1> Request forbidden by administrative rules. Interdiction
#> d'acceder a cette ressource </body></html>
# }