Skip to contents

PHF Team Stats lookup

Usage

phf_team_stats(team, season = most_recent_phf_season())

Arguments

team

Team name with nickname (e.g. Boston Pride, Buffalo Beauts)

season

Season (YYYY) to pull the team stats from, the concluding year in XXXX-YY format

Value

A named list of data frames: skaters, goalies

Examples

# \donttest{
  try(phf_team_stats(team = "Boston Pride", season = 2022))
#> $skaters
#> ── PHF Team Skater Stats Information from PremierHockeyFederation.com ──────────
#>  Data updated: 2023-03-08 07:48:41 UTC
#> # A tibble: 44 × 30
#>    team_id team_name group divis…¹ playe…² playe…³ posit…⁴ games…⁵ goals assists
#>      <int> <chr>     <lgl>   <int>   <int> <chr>   <chr>     <int> <int>   <int>
#>  1  124983 Boston P… NA      13893      18 Taylor… F            20     8       7
#>  2  124983 Boston P… NA      13893      17 McKenn… F            20     5      10
#>  3  124983 Boston P… NA      13893      14 Jillia… F            20     7       7
#>  4  124983 Boston P… NA      13893      19 Sammy … F            20     5       7
#>  5  124983 Boston P… NA      13893       8 Amanda… D            20     2       9
#>  6  124983 Boston P… NA      13893      21 Christ… F            20     6       4
#>  7  124983 Boston P… NA      13893      42 Meghar… F            17     5       4
#>  8  124983 Boston P… NA      13893      29 Kayla … F            18     3       4
#>  9  124983 Boston P… NA      13893      13 Kaleig… D            20     1       4
#> 10  124983 Boston P… NA      13893      47 Mallor… D            20     1       4
#> # … with 34 more rows, 20 more variables: points <int>, shots_on_goal <int>,
#> #   faceoffs_won_lost <chr>, faceoffs_won <int>, faceoffs_lost <int>,
#> #   blocks <int>, penalty_minutes <int>, takeaways <int>, giveaways <int>,
#> #   scoring_pct <dbl>, powerplay_goals <int>, shorthanded_goals <int>,
#> #   game_winning_goals <int>, points_per_game_average <dbl>,
#> #   faceoffs_win_pct <dbl>, shots_blocked <int>, shots <int>,
#> #   season_type <chr>, skaters_href <chr>, player_id <int>, and abbreviated …
#> 
#> $goalies
#> ── PHF Team Goalie Stats Information from PremierHockeyFederation.com ──────────
#>  Data updated: 2023-03-08 07:48:41 UTC
#> # A tibble: 6 × 25
#>   team_id team_name    group divisi…¹ playe…² playe…³ games…⁴  wins losses  ties
#>     <int> <chr>        <lgl>    <int>   <int> <chr>     <int> <int>  <int> <int>
#> 1  124983 Boston Pride NA       13893      88 Katie …      12     7      2     0
#> 2  124983 Boston Pride NA       13893      33 Victor…       4     1      1     0
#> 3  124983 Boston Pride NA       13893      35 Lovisa…       8     2      2     0
#> 4  124983 Boston Pride NA       13893      35 Lovisa…       0     0      0     0
#> 5  124983 Boston Pride NA       13893      33 Victor…       0     0      0     0
#> 6  124983 Boston Pride NA       13893      88 Katie …       3     3      0     0
#> # … with 15 more variables: overtime_losses <int>, minutes_played <chr>,
#> #   shots_against <int>, goals_against <int>, save_percent <dbl>,
#> #   goals_against_average <dbl>, shutouts <int>, saves <int>,
#> #   penalty_minutes <int>, goals <int>, assists <int>, games_started <int>,
#> #   season_type <chr>, goalies_href <chr>, player_id <int>, and abbreviated
#> #   variable names ¹​division_id, ²​player_jersey, ³​player_name, ⁴​games_played
#> 
# }