Skip to contents

Retrieves a detailed game summary from the PWHL game center feed, including scoring summary, penalty summary, shots by period, and three stars.

Usage

pwhl_game_summary(game_id)

Arguments

game_id

Game ID to retrieve the summary for.

Value

A named list of data frames: details, scoring, penalties, shots_by_period, three_stars.

details

col_nametypesdescription
game_idnumericUnique game identifier.
datecharacterGame date.
statuscharacterGame status.
venuecharacterVenue where the game was played.
attendancecharacterReported attendance.
home_teamcharacterHome team name.
home_team_idnumericHome team identifier.
home_scorenumericHome team final score.
away_teamcharacterAway team name.
away_team_idnumericAway team identifier.
away_scorenumericAway team final score.

scoring

col_nametypesdescription
periodcharacterPeriod in which the goal was scored.
timecharacterTime of the goal.
teamcharacterTeam that scored.
team_idnumericIdentifier of the scoring team.
scorercharacterName of the goal scorer.
scorer_idnumericIdentifier of the goal scorer.
assist_1characterName of the primary assister.
assist_2characterName of the secondary assister.
goal_typecharacterType of goal.

penalties

col_nametypesdescription
periodcharacterPeriod in which the penalty occurred.
timecharacterTime of the penalty.
teamcharacterPenalized team.
team_idnumericIdentifier of the penalized team.
playercharacterPenalized player name.
player_idnumericIdentifier of the penalized player.
infractioncharacterPenalty infraction description.
minutesnumericPenalty minutes.

shots_by_period

col_nametypesdescription
periodcharacterPeriod number.
home_shotsnumericHome team shots in the period.
away_shotsnumericAway team shots in the period.

three_stars

col_nametypesdescription
starnumericStar ranking (1 to 3).
player_idnumericIdentifier of the selected player.
first_namecharacterPlayer first name.
last_namecharacterPlayer last name.
team_idnumericIdentifier of the player's team.

Examples

# \donttest{
  try(pwhl_game_summary(game_id = 27))
#> $details
#>   game_id date status venue attendance home_team home_team_id home_score
#> 1      27 <NA>   <NA>  <NA>       <NA>      <NA>           NA          0
#>   away_team away_team_id away_score
#> 1      <NA>           NA          0
#> 
#> $scoring
#> data frame with 0 columns and 0 rows
#> 
#> $penalties
#> data frame with 0 columns and 0 rows
#> 
#> $shots_by_period
#> data frame with 0 columns and 0 rows
#> 
#> $three_stars
#> data frame with 0 columns and 0 rows
#> 
# }