Skip to contents

Professional Women’s Hockey League

Game Data

Functions for accessing PWHL game-level data

pwhl_schedule()
PWHL Schedule
pwhl_scorebar()
PWHL Scorebar
pwhl_game_info()
PWHL Game Information
pwhl_game_summary()
PWHL Game Summary
pwhl_pbp()
PWHL Play-by-play
pwhl_player_box()
PWHL Player Game Box Scores

Team Data

Functions for accessing PWHL team-level data

pwhl_teams()
PWHL Teams
pwhl_team_roster()
PWHL Rosters
pwhl_standings()
PWHL Standings

Player Data

Functions for accessing PWHL player-level data

pwhl_player_info()
PWHL Player Info
pwhl_player_stats()
PWHL Player Season Stats
pwhl_player_game_log()
PWHL Player Game Log
pwhl_player_search()
PWHL Player Search
pwhl_stats()
PWHL Stats
pwhl_leaders()
PWHL League Leaders
pwhl_streaks()
PWHL Player Streaks

League Data

Functions for accessing PWHL league-level data

pwhl_season_id()
PWHL Season IDs
pwhl_transactions()
PWHL Transactions
pwhl_playoff_bracket()
PWHL Playoff Bracket

PWHL Data Loaders

Full Seasons of PWHL Data

Functions that load full seasons of pre-scraped PWHL data from the sportsdataverse-data releases

load_pwhl_pbp()
Load fastRhockey PWHL play-by-play
load_pwhl_player_box()
Load fastRhockey PWHL player box scores
load_pwhl_schedule()
Load fastRhockey PWHL schedules
load_pwhl_rosters()
Load fastRhockey PWHL team rosters

Update or Create PWHL Database

Functions that update and create a database of fastRhockey PWHL play-by-play data

update_pwhl_db()
Update or create a fastRhockey PWHL play-by-play database

NHL Data

Game Data

Functions exported by fastRhockey sourced from the game endpoint of the NHL API

nhl_game_boxscore()
NHL Game Boxscore
nhl_game_feed()
NHL Game Feed
nhl_game_pbp()
NHL Game Play-by-Play
nhl_game_shifts()
NHL Game Shifts
nhl_game_story()
NHL Game Story
nhl_game_content()
NHL Game Content
nhl_gamecenter_landing()
NHL Gamecenter Landing
nhl_gamecenter_right_rail()
NHL Gamecenter Right Rail

Teams Data

Functions exported by fastRhockey sourced from the teams endpoint of the NHL API

nhl_teams()
NHL Teams
nhl_teams_info()
NHL Teams Info
nhl_teams_roster()
NHL Team Roster
nhl_teams_stats()
NHL Teams Stats
nhl_team_prospects()
NHL Team Prospects
nhl_team_scoreboard()
NHL Team Scoreboard
espn_nhl_teams()
Get ESPN NHL team names and IDs

Club Data

Functions exported by fastRhockey for NHL club-level schedule and stats

nhl_club_schedule()
NHL Club Schedule
nhl_club_stats_season()
NHL Club Stats Season

Players Data

Functions exported by fastRhockey sourced from the players endpoint of the NHL API

nhl_player_info()
NHL Player Info
nhl_player_game_log()
NHL Player Game Log
nhl_player_spotlight()
NHL Player Spotlight
nhl_player_stats()
NHL Player Stats

Roster Data

Functions exported by fastRhockey for NHL roster information

nhl_roster_season()
NHL Roster Season

Schedule Data

Functions exported by fastRhockey sourced from the schedule endpoint of the NHL API

nhl_schedule()
NHL Schedule
nhl_schedule_calendar()
NHL Schedule Calendar

Draft Data

Functions exported by fastRhockey sourced from the draft endpoint of the NHL API

nhl_draft()
NHL Draft
nhl_draft_year()
NHL Draft by Year
nhl_draft_prospects()
NHL Draft Prospects
nhl_draft_prospects_info()
NHL Draft Prospects Info
nhl_draft_rankings()
NHL Draft Rankings

Standings Data

Functions exported by fastRhockey sourced from the standings endpoint of the NHL API

nhl_standings()
NHL Standings
nhl_standings_season()
NHL Standings Season List

Scoreboard and Scores

Functions exported by fastRhockey for NHL scoreboard and scores data

nhl_scoreboard()
NHL Scoreboard
nhl_scores()
NHL Scores

Playoffs Data

Functions exported by fastRhockey for NHL playoff data

nhl_playoff_bracket()
NHL Playoff Bracket
nhl_playoff_carousel()
NHL Playoff Carousel
nhl_playoff_schedule()
NHL Playoff Schedule

Season and Stats Data

Functions exported by fastRhockey for NHL season metadata and aggregated stats

nhl_seasons()
NHL Seasons
nhl_stats_skaters()
NHL Stats API — Skater Stats
nhl_stats_goalies()
NHL Stats API — Goalie Stats
nhl_stats_teams()
NHL Stats API — Team Stats
nhl_stats_draft()
NHL Stats API — Draft Summaries
nhl_stats_seasons()
NHL Stats API — Seasons List
nhl_stats_misc()
NHL Stats API — Miscellaneous Endpoints
nhl_skater_stats_leaders()
NHL Skater Stats Leaders
nhl_goalie_stats_leaders()
NHL Goalie Stats Leaders

Broadcast and Odds

Functions exported by fastRhockey for broadcast availability and odds

nhl_where_to_watch()
NHL Where to Watch
nhl_partner_game_odds()
NHL Partner Game Odds
nhl_tv_schedule()
NHL TV Schedule

Conference and Division Data

Functions exported by fastRhockey sourced from the conferences and divisions endpoints of the NHL API

nhl_conferences()
NHL Conferences
nhl_conferences_info()
NHL Conference Info
nhl_divisions()
NHL Divisions
nhl_divisions_info()
NHL Divisions Info

Metadata

Functions exported by fastRhockey for NHL metadata and location lookups

nhl_meta()
NHL Meta
nhl_location()
NHL Location

fastRhockey Data

Full Seasons of NHL Data

Functions exported by fastRhockey which load full seasons of fastRhockey NHL data

load_nhl_pbp()
Load fastRhockey NHL play-by-play
load_nhl_pbp_lite()
Load cleaned NHL play-by-play (lite) from the data repo
load_nhl_team_box()
Load fastRhockey NHL team box scores
load_nhl_player_box()
Load fastRhockey NHL player box scores
load_nhl_rosters()
Load fastRhockey NHL team rosters
load_nhl_schedule()
Load fastRhockey NHL schedules

Update or Create NHL Database

Functions exported by fastRhockey which update and create a database of fastRhockey NHL play-by-play data

update_nhl_db()
Update or create a fastRhockey NHL play-by-play database

Included data

Data included within the package

nhl_team_logos phf_team_logos
Data in the package for reference

Helpers

Helper Functions

Functions used internally by fastRhockey which assist in transforming or loading data

csv_from_url()
Load .csv / .csv.gz file from a remote connection
progressively()
Progressively
rds_from_url()
Load .rds file from a remote connection
most_recent_nhl_season()
Most Recent NHL Season
most_recent_nhl_season_api_param()
Most Recent NHL Season for NHL API
most_recent_pwhl_season()
Most Recent PWHL Season
most_recent_phf_season() deprecated
Most Recent PHF Season
helper_nhl_calculate_xg()
Calculate expected goals (xG) for play-by-play data
refresh_xg_models()
Force re-download of xG models

Deprecated PHF Functions

The Premier Hockey Federation (PHF) has ceased operations. These functions are deprecated and will emit warnings when called. Historical data may still be available via the load_phf_* functions.

phf_game_all() deprecated
PHF Game All
phf_pbp() deprecated
phf_pbp
phf_team_box() deprecated
PHF Team Boxscore
phf_player_box() deprecated
PHF Player Boxscore
phf_schedule() deprecated
PHF Schedule
phf_league_info() deprecated
PHF League Information
phf_game_raw() deprecated
PHF Game Raw
phf_game_details() deprecated
PHF Game Details
phf_game_summary() deprecated
PHF Game Summary
phf_leaders() deprecated
PHF Player Leaderboards
phf_player_stats() deprecated
PHF Player Stats
phf_standings() deprecated
PHF Standings
phf_team_roster() deprecated
PHF Team Roster
phf_team_stats() deprecated
PHF Team Stats

Deprecated PHF Data Loaders

Data loaders for the defunct PHF league. Historical data may still be available but is no longer updated.

load_phf_pbp() deprecated
Load fastRhockey PHF play-by-play
load_phf_team_box() deprecated
Load fastRhockey PHF team box scores
load_phf_player_box() deprecated
Load fastRhockey PHF player box scores
load_phf_rosters() deprecated
Load fastRhockey PHF team rosters
load_phf_schedule() deprecated
Load fastRhockey PHF schedules
update_phf_db() deprecated
Update or create a fastRhockey PHF play-by-play database