Skip to content

hockeyR 1.1.0

Compare
Choose a tag to compare
@danmorse314 danmorse314 released this 06 Sep 14:57
· 71 commits to master since this release

hockeyR 1.1.0

New addition:

  • Play-by-play data loaded through load_pbp includes new column for expected goals
  • Details on & code to create the hockeyR expected goals model can be found here
  • The scrape_game function has been adjusted to automatically add expected goals to the output

New function:

  • calculate_xg adds expected goals column to pbp data (used inside scrape_game, not necessary to use this to get expected goal values)

Fixes:

  • Changed the player_id column in get_draft_class to prospect_id - proper NHL player_id column only returns with player_details set to TRUE