Description Usage Arguments Value
get_coordinates() imports the event coordinates corresponding to a given year and game ID and returns a list object.
1 2 3 | ds.get_coordinates(season, game_id, source, date, away_team,
try_tolerance = 3, agents = hockeyR::ds.get_user_agents()[sample(1:4,
size = 1)])
|
season |
a season |
game_id |
a single game id |
source |
espn or nhl |
date |
the date of the game (for espn) |
away_team |
the away team |
try_tolerance |
the number of tries before moving on. |
agents |
a useragent, selected from the list of useragents. |
list object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.