scrapePlayers.QH: Scrape and clean all player data

Description Usage Arguments Value Examples

View source: R/scrapePlayersQH.R

Description

This is a one-command function to scrape and clean all player data available from Quanthockey.com. This takes many hours. Also saves results to a dated .RDS file.

Usage

1
scrapePlayers.QH(player_list, directory = "./data/players/", ...)

Arguments

player_list

A player list of the type type created by getPlayerList.QH

directory

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.QH()
## Not run: scrapePlayers.QH(sleep=15, long_sleep=180, group_by=500)

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