Skip to contents

phf_game_details: pull in the raw data for a game_id from the PHF/NWHL API

Usage

phf_game_details(game_id)

Arguments

game_id

The unique ID code for the game that you are interested in viewing the data for

Value

A data frame with game team details

Examples

# \donttest{
  try(phf_game_details(game_id = 612254))
#> ── PHF Game Details Information from PremierHockeyFederation.com ───────────────
#>  Data updated: 2023-03-08 07:48:03 UTC
#> # A tibble: 1 × 12
#>   game_id game_date      home_…¹ home_…² home_…³ home_…⁴ home_…⁵ away_…⁶ away_…⁷
#>     <dbl> <chr>          <chr>   <chr>   <chr>   <chr>     <int> <chr>   <chr>  
#> 1  612254 Dec 10, 2022 … Toront… Toronto Six     TOR           2 Metrop… Metrop…
#> # … with 3 more variables: away_nickname <chr>, away_abbreviation <chr>,
#> #   away_score_total <int>, and abbreviated variable names ¹​home_team,
#> #   ²​home_location, ³​home_nickname, ⁴​home_abbreviation, ⁵​home_score_total,
#> #   ⁶​away_team, ⁷​away_location
# }