Description Usage Arguments Value
Scrape Multiple Games
scrape_nested_games()
collects all game data corresponding to a given vector of game IDs and season
1 2 3 | ds.scrape_nested_games(games = ds.all_games, season = "20182019",
pause = 1, try_tolerance = 3, agents = ds.user_agents[[1]],
presave = TRUE, use_presaved = TRUE, data_dir = "nhlgamedata")
|
games |
numeric vector. The game IDs. Defaults to all regular-season and playoff game IDs. |
season |
character. The season. Default |
pause |
numeric. Seconds to pause between games. Default |
try_tolerance |
numeric. Number of times to bang head against wall. Default |
agents |
character vector. HTTP user agent strings. Defaults to a single sensible string. |
presave |
logical. Save scraped games for later retrieval? Default |
use_presaved |
logical. Reload any presaved games instead of downloading? Default |
data_dir |
character. Path to saved games. Default "nhlgamedata". |
A list of several five-element lists, one for each game
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.