ds.get_coordinates: Get Coordinates

Description Usage Arguments Value

Description

get_coordinates() imports the event coordinates corresponding to a given year and game ID and returns a list object.

Usage

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)])

Arguments

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.

Value

list object


pbulsink/hockeyR documentation built on May 15, 2019, 4:16 p.m.