Skip to contents

Premier Hockey Federation

Functions exported by fastRhockey which provide access to PHF data

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

fastRhockey Data

Full Seasons of PHF Data

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

load_phf_pbp()
Load fastRhockey PHF play-by-play
load_phf_team_box()
Load fastRhockey PHF team box scores
load_phf_player_box()
Load fastRhockey PHF player box scores
load_phf_schedule()
Load fastRhockey PHF schedules

Update or Create Database

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

update_phf_db()
Update or create a fastRhockey PHF play-by-play database

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_team_box()
Load fastRhockey NHL team box scores
load_nhl_player_box()
Load fastRhockey NHL player box scores
load_nhl_schedule()
Load fastRhockey NHL schedules

Update or Create 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

Game Data

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

nhl_game_boxscore()
NHL Game Boxscore
nhl_game_content()
NHL Game Content
nhl_game_feed()
NHL Game Feed
nhl_game_shifts()
NHL Game Shifts

Teams Data

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

nhl_teams()
NHL Teams
espn_nhl_teams()
Get ESPN NHL team names and IDs
nhl_teams_info()
NHL Teams Info
nhl_teams_roster()
NHL Teams Roster
nhl_teams_stats()
NHL Teams Stats

Players Data

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

nhl_player_info()
NHL Player Info
nhl_player_stats()
NHL Player Stats

Schedule Data

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

nhl_schedule()
NHL Schedule

Draft Data

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

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

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

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

most_recent_phf_season()
Most Recent PHF Season
most_recent_nhl_season()
Most Recent NHL Season
most_recent_nhl_season_api_param()
Most Recent NHL Season for NHL API
csv_from_url()
Load .csv / .csv.gz file from a remote connection
rds_from_url()
Load .rds file from a remote connection
progressively()
Progressively