Skip to contents

phf_player_box: loads the player boxscore

Usage

phf_player_box(game_id)

Arguments

game_id

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

Value

A named list of data frames: skaters, goalies

Examples

# \donttest{
  try(phf_player_box(game_id = 420339))
#> $skaters
#> ── PHF Skaters Boxscore Information from PremierHockeyFederation.com ───────────
#>  Data updated: 2023-03-08 07:48:26 UTC
#> # A tibble: 33 × 23
#>    player_…¹ playe…² posit…³ goals assists points penal…⁴ shots…⁵ blocks givea…⁶
#>        <int> <chr>   <chr>   <int>   <int>  <int>   <int>   <int>  <int>   <int>
#>  1        22 Kenned… F           2       1      3       2       7      1       4
#>  2        15 Emma V… F           0       2      2       2       3      2       0
#>  3        88 Amanda… F           0       2      2       0       3      0       1
#>  4         5 Tori H… D           0       1      1       2       0      1       2
#>  5        11 Emily … F           1       0      1       0       1      1       2
#>  6         6 Shanno… D           0       0      0       2       1      3       1
#>  7         7 Emma P… F           0       0      0       0       0      0       1
#>  8         8 Alyssa… F           0       0      0       0       0      0       2
#>  9         9 Kaycie… F           0       0      0       0       1      0       1
#> 10        12 Allie … D           0       0      0       4       3      0       1
#> # … with 23 more rows, 13 more variables: takeaways <int>,
#> #   faceoffs_won_lost <chr>, faceoffs_win_pct <dbl>, powerplay_goals <int>,
#> #   shorthanded_goals <int>, shots <int>, shots_blocked <int>,
#> #   faceoffs_won <int>, faceoffs_lost <int>, team <chr>, skaters_href <chr>,
#> #   player_id <chr>, game_id <dbl>, and abbreviated variable names
#> #   ¹​player_jersey, ²​player_name, ³​position, ⁴​penalty_minutes, ⁵​shots_on_goal,
#> #   ⁶​giveaways
#> 
#> $goalies
#> ── PHF Goalies Boxscore Information from PremierHockeyFederation.com ───────────
#>  Data updated: 2023-03-08 07:48:26 UTC
#> # A tibble: 5 × 14
#>   player_j…¹ playe…² shots…³ goals…⁴ saves save_…⁵ minut…⁶ penal…⁷ goals assists
#>        <int> <chr>     <int>   <int> <int>   <dbl> <chr>     <int> <int>   <int>
#> 1         35 Abbie …      34       4    30   0.882 63:30         0     0       0
#> 2         55 Mariah…       0       0     0   0     00:00         0     0       0
#> 3         33 Victor…       0       0     0   0     00:00         0     0       0
#> 4         35 Lovisa…       0       0     0   0     00:00         0     0       0
#> 5         88 Katie …      34       3    31   0.912 63:30         0     0       0
#> # … with 4 more variables: team <chr>, goalies_href <chr>, player_id <chr>,
#> #   game_id <dbl>, and abbreviated variable names ¹​player_jersey, ²​player_name,
#> #   ³​shots_against, ⁴​goals_against, ⁵​save_percent, ⁶​minutes_played,
#> #   ⁷​penalty_minutes
#> 
# }