
All aggregate loading functions will be unavailable for ~1 day. We are implementing automatic data refreshing for these pre-loaded datasets.
nhlscraper
36 posts

@nhlscraper
CRAN-certified minimum-dependency R package to scrape, clean, and visualize hockey data via the NHL and ESPN APIs; 3500+ downloads

All aggregate loading functions will be unavailable for ~1 day. We are implementing automatic data refreshing for these pre-loaded datasets.






Has someone posted a heat map of where shootout and/or penalty shots are taken from (split between goals and non-goals)?


While these season-aggregate loading functions are still under development, individual games ones like gc_pbp(), wsc_pbp(), and shift_chart() are now finalized in v0.5.0.9000 with the new on-ice columns. You can check out the whole process here: rentosaijo.github.io/nhlscraper/art…

Note that gc_pbps(), wsc_pbps(), and shift_charts() are going to be unstable for this coming week as we make some improvements on the quality of columns returned. Also, in the development version, we've implemented C for some parts of cleaning functions.

2. add_on_ice_players() now returns 8 new columns pertaining to the length of the current shift and time elapsed since the end of the previous shift for each player on the ice; it also now infers goalieInNetId for blocked shot events.

We continue to enrich the cleaning functions in the development version 0.5.0.9000: 1. calculate_speed() now properly handles same-second events (with 1/n estimation) and shootouts/penalty shots; it also returns the eventId of the anchoring event.

In addition, replays() has been added to access season-aggregate of replay(), which are cleaned per-decisecond (every 0.1 seconds) data from NHL's internal Puck & Player Tracking up to 12-14 seconds before most goals starting from the 2023-24 season.