Description Usage Arguments Value Examples
This function will take in a team_id and a list of game_ids, and a list of events to looks for, and resturn a list of x, y coordinates, transformed to be attacking zone on the left of the rink, and defending zone on the right of the rink. Some anomalies due to how the NHL tracks positions
1 | GetHeatmapCoords(team_id, gids, events_list)
|
team_id |
Int, id of the team to transfrom for |
gids |
Int, list of game ids to check for events |
events_list |
Character, string of events to select from the database Note that events must be quoted in single quotes inside the string |
List, containing all x, y pairs for events and additional metadata
1 2 | SetDbPath(example = TRUE)
GetHeatmapCoords(10, 2019020001, "'Shot', 'Goal'")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.