scrapePlayers.HR: Scrape and clean all player data

Description Usage Arguments Value Examples

View source: R/scrapePlayersHR.R

Description

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.

Usage

1
scrapePlayers.HR(data_dir = "./data/players/", ...)

Arguments

data_dir

Directory to store data

...

Additional parameters to pass

Value

a list of three cleaned data.frames, containing

PlayerStats

Combined player statistics

GoalieStats

Combined goalie statistics

PlayerMeta

Meta statistics for all (goalies and players)

Examples

1
2
## Not run: scrapePlayers.HR()
## Not run: scrapePlayers.HR(sleep=15, long_sleep=180)

pbulsink/HockeyScrapR documentation built on Sept. 9, 2020, 9:21 a.m.