Skip to contents

PHF League Information per year

Usage

phf_league_info(season = most_recent_phf_season())

Arguments

season

Season (YYYY) to pull the league info and IDs for. Season is the concluding year in XXXX-YY format

Value

A named list of data frames: seasons, divisions, teams, league, officials, brackets

Examples

# \donttest{
  try(phf_league_info(season = 2023))
#> $seasons
#> ── PHF Seasons Information from PremierHockeyFederation.com ────────────────────
#>  Data updated: 2023-03-08 07:48:14 UTC
#> # A tibble: 10 × 5
#>       id name                    type        view_sett…¹ $show…² $wild…³ leagu…⁴
#>    <int> <chr>                   <chr>             <int> <lgl>     <int>   <int>
#>  1  4667 2022-23                 League Play           3 TRUE          0     100
#>  2  5238 2022-2023 All-Star Game League Play           3 TRUE          0     100
#>  3  3372 2021-22                 League Play           3 TRUE          0     100
#>  4  4040 2021-2022 All-Star Game Tournament            3 TRUE          0     100
#>  5  2779 2020-21                 League Play           2 TRUE          0     100
#>  6  1950 2019-20                 League Play           2 TRUE          0     100
#>  7  2047 2018-19                 League Play           2 TRUE          0     100
#>  8  2046 2017-18                 League Play           2 TRUE          0     100
#>  9  2045 2016-17                 League Play           2 TRUE          0     100
#> 10   246 2015-16                 League Play           2 TRUE          0     100
#> # … with 9 more variables: view_settings$points$loss <int>, $$tie <int>,
#> #   $$otw <int>, $$otl <int>, $$sow <int>, $$sol <int>,
#> #   view_settings$wildcard_top_from_league <int>, $record_saves <lgl>,
#> #   $fields <df[,3]>, and abbreviated variable names ¹​view_settings$points$win,
#> #   ²​$show_standings, ³​$wildcard_top_from_divs, ⁴​league_id
#> 
#> $divisions
#> ── PHF Division Information from PremierHockeyFederation.com ───────────────────
#>  Data updated: 2023-03-08 07:48:14 UTC
#> # A tibble: 1 × 4
#>      id name  season_id tournament_id
#>   <int> <chr>     <int> <lgl>        
#> 1 20048 PHF        4667 NA           
#> 
#> $teams
#> ── PHF Teams Information from PremierHockeyFederation.com ──────────────────────
#>  Data updated: 2023-03-08 07:48:14 UTC
#> # A tibble: 7 × 4
#>       id name                  group division_id
#>    <int> <chr>                 <lgl>       <int>
#> 1 203156 Boston Pride          NA          20048
#> 2 203155 Buffalo Beauts        NA          20048
#> 3 203159 Connecticut Whale     NA          20048
#> 4 203157 Metropolitan Riveters NA          20048
#> 5 203160 Minnesota Whitecaps   NA          20048
#> 6 207478 Montreal Force        NA          20048
#> 7 203158 Toronto Six           NA          20048
#> 
#> $league
#> ── PHF Leagues Information from PremierHockeyFederation.com ────────────────────
#>  Data updated: 2023-03-08 07:48:14 UTC
#> # A tibble: 2 × 3
#>      id name       view_…¹ $abbr…² $date…³ $time…⁴ $show…⁵ $show…⁶ $show…⁷ $url 
#>   <int> <chr>      <lgl>   <chr>     <int>   <int> <lgl>   <chr>   <lgl>   <chr>
#> 1  1976 Pet League TRUE    PL            0      12 FALSE   TRUE    TRUE    NA   
#> 2   100 PHF        TRUE    PHF           0      12 TRUE    team-p… TRUE    http…
#> # … with 61 more variables: view_settings$watch_live_url <chr>,
#> #   $default_season_id <lgl>, $tables <df[,12]>, $scoring_method <chr>,
#> #   $player_shots <lgl>, $tabular_player_shots <lgl>,
#> #   $shot_blocked_on_goal <lgl>, $shot_type <lgl>, $record_blocks <lgl>,
#> #   $record_misses <lgl>, $record_assists <lgl>, $record_faceoffs <lgl>,
#> #   $record_loose_balls <lgl>, $record_plus_minus <lgl>, $record_saves <lgl>,
#> #   $record_shootout_game_winning_goal <lgl>, $penalty_victim <lgl>, …
#> 
#> $officials
#> ── PHF Officials Information from PremierHockeyFederation.com ──────────────────
#>  Data updated: 2023-03-08 07:48:14 UTC
#> # A tibble: 17 × 2
#>       id name                   
#>    <int> <chr>                  
#>  1  8435 Alex Clarke            
#>  2   917 Andrea Wissman         
#>  3  4856 Brie Zdunkiewicz       
#>  4  4903 Danika Korpacz         
#>  5  8934 Gabrielle Ariano-Lortie
#>  6  1025 Jackie Spresser        
#>  7  4854 Jennifer Cameron       
#>  8  8931 Jessica Chartrand      
#>  9  9111 Jessica Coleman        
#> 10  9112 Jodi Anderson          
#> 11  4855 Kate Werner            
#> 12  4902 Kelly Cooke            
#> 13  9163 Lauren Helm            
#> 14  9079 Lucy Vankula           
#> 15  9251 Marie Tjana Picavet    
#> 16   983 McKenzie Williams      
#> 17   958 Richard Jebo           
#> 
#> $brackets
#> ── PHF Brackets Information from PremierHockeyFederation.com ───────────────────
#>  Data updated: 2023-03-08 07:48:14 UTC
#> # A tibble: 1 × 2
#>      id name           
#>   <int> <chr>          
#> 1  2169 2023 Isobel Cup
#> 
  try(phf_league_info(season = 2016))
#> $seasons
#> ── PHF Seasons Information from PremierHockeyFederation.com ────────────────────
#>  Data updated: 2023-03-08 07:48:15 UTC
#> # A tibble: 10 × 5
#>       id name                    type        view_sett…¹ $show…² $wild…³ leagu…⁴
#>    <int> <chr>                   <chr>             <int> <lgl>     <int>   <int>
#>  1  4667 2022-23                 League Play           3 TRUE          0     100
#>  2  5238 2022-2023 All-Star Game League Play           3 TRUE          0     100
#>  3  3372 2021-22                 League Play           3 TRUE          0     100
#>  4  4040 2021-2022 All-Star Game Tournament            3 TRUE          0     100
#>  5  2779 2020-21                 League Play           2 TRUE          0     100
#>  6  1950 2019-20                 League Play           2 TRUE          0     100
#>  7  2047 2018-19                 League Play           2 TRUE          0     100
#>  8  2046 2017-18                 League Play           2 TRUE          0     100
#>  9  2045 2016-17                 League Play           2 TRUE          0     100
#> 10   246 2015-16                 League Play           2 TRUE          0     100
#> # … with 9 more variables: view_settings$points$loss <int>, $$tie <int>,
#> #   $$otw <int>, $$otl <int>, $$sow <int>, $$sol <int>,
#> #   view_settings$wildcard_top_from_league <int>, $record_saves <lgl>,
#> #   $fields <df[,3]>, and abbreviated variable names ¹​view_settings$points$win,
#> #   ²​$show_standings, ³​$wildcard_top_from_divs, ⁴​league_id
#> 
#> $divisions
#> ── PHF Division Information from PremierHockeyFederation.com ───────────────────
#>  Data updated: 2023-03-08 07:48:15 UTC
#> # A tibble: 1 × 4
#>      id name          season_id tournament_id
#>   <int> <chr>             <int> <lgl>        
#> 1  1021 Founding Four       246 NA           
#> 
#> $teams
#> ── PHF Teams Information from PremierHockeyFederation.com ──────────────────────
#>  Data updated: 2023-03-08 07:48:15 UTC
#> # A tibble: 4 × 4
#>      id name              group division_id
#>   <int> <chr>             <lgl>       <int>
#> 1  6335 Boston Pride      NA           1021
#> 2  6336 Buffalo Beauts    NA           1021
#> 3  6337 Connecticut Whale NA           1021
#> 4  6338 New York Riveters NA           1021
#> 
#> $league
#> ── PHF Leagues Information from PremierHockeyFederation.com ────────────────────
#>  Data updated: 2023-03-08 07:48:15 UTC
#> # A tibble: 2 × 3
#>      id name       view_…¹ $abbr…² $date…³ $time…⁴ $show…⁵ $show…⁶ $show…⁷ $url 
#>   <int> <chr>      <lgl>   <chr>     <int>   <int> <lgl>   <chr>   <lgl>   <chr>
#> 1  1976 Pet League TRUE    PL            0      12 FALSE   TRUE    TRUE    NA   
#> 2   100 PHF        TRUE    PHF           0      12 TRUE    team-p… TRUE    http…
#> # … with 61 more variables: view_settings$watch_live_url <chr>,
#> #   $default_season_id <lgl>, $tables <df[,12]>, $scoring_method <chr>,
#> #   $player_shots <lgl>, $tabular_player_shots <lgl>,
#> #   $shot_blocked_on_goal <lgl>, $shot_type <lgl>, $record_blocks <lgl>,
#> #   $record_misses <lgl>, $record_assists <lgl>, $record_faceoffs <lgl>,
#> #   $record_loose_balls <lgl>, $record_plus_minus <lgl>, $record_saves <lgl>,
#> #   $record_shootout_game_winning_goal <lgl>, $penalty_victim <lgl>, …
#> 
#> $officials
#> ── PHF Officials Information from PremierHockeyFederation.com ──────────────────
#>  Data updated: 2023-03-08 07:48:15 UTC
#> # A tibble: 17 × 2
#>       id name                   
#>    <int> <chr>                  
#>  1  8435 Alex Clarke            
#>  2   917 Andrea Wissman         
#>  3  4856 Brie Zdunkiewicz       
#>  4  4903 Danika Korpacz         
#>  5  8934 Gabrielle Ariano-Lortie
#>  6  1025 Jackie Spresser        
#>  7  4854 Jennifer Cameron       
#>  8  8931 Jessica Chartrand      
#>  9  9111 Jessica Coleman        
#> 10  9112 Jodi Anderson          
#> 11  4855 Kate Werner            
#> 12  4902 Kelly Cooke            
#> 13  9163 Lauren Helm            
#> 14  9079 Lucy Vankula           
#> 15  9251 Marie Tjana Picavet    
#> 16   983 McKenzie Williams      
#> 17   958 Richard Jebo           
#> 
#> $brackets
#> ── PHF Brackets Information from PremierHockeyFederation.com ───────────────────
#>  Data updated: 2023-03-08 07:48:15 UTC
#> # A tibble: 1 × 2
#>      id name                    
#>   <int> <chr>                   
#> 1   609 2016 Isobel Cup Playoffs
#> 
# }