Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blocked shots #9

Open
topepo opened this issue Nov 2, 2022 · 1 comment
Open

blocked shots #9

topepo opened this issue Nov 2, 2022 · 1 comment

Comments

@topepo
Copy link

topepo commented Nov 2, 2022

Just a clarification question, since the blocked shot raw data is a pain.

For blocked shots, in the raw data, the event seems to refer to the team that is blocking (as opposed to the shooter's team).

For the data produced by load_pbp(), do we need to adjust the coordinates based on this? If fixed_x and fixed_y are going left to right for the other shot types, do we need to do the same for blocked shotes?

Also, is the event team still referring to the blocking player's team?

@danmorse314
Copy link
Owner

For blocked shots, all data pulled using hockeyR is set up as follows:

event_team & event_team_abbr: shooting team
fixed_x and fixed_y: location of the block, with the home team always shooting to the right

There shouldn't be any adjusting needed, main note is that the location refers to where it was blocked rather than where the shot was taken from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants