Description Usage Arguments Value Examples
View source: R/scrapePlayersHR.R
This is a one-command function to scrape and clean all player data available from Hockey-Reference.com. This takes many hours. Also saves results to a dated .RDS file.
1 | scrapePlayers.HR(data_dir = "./data/players/", ...)
|
data_dir |
Directory to store data |
... |
Additional parameters to pass |
a list of three cleaned data.frames, containing
PlayerStats |
Combined player statistics |
GoalieStats |
Combined goalie statistics |
PlayerMeta |
Meta statistics for all (goalies and players) |
1 2 | ## Not run: scrapePlayers.HR()
## Not run: scrapePlayers.HR(sleep=15, long_sleep=180)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.