Description Usage Arguments Value Examples
View source: R/scrapePlayersHR.R
Update player information (don't rescrape old players) from Hockey-Reference.com.
1 2 | updatePlayers.HR(player_data, data_dir = "./data/players/",
years_back = 1, player_list = NULL, ...)
|
player_data |
The player_data data.frame to update |
data_dir |
The data dir of stored player information |
years_back |
The number of years to go back (will scrape all players currently active + past |
player_list |
Optional player list to scrape from (default NULL –> get updated player list) |
... |
Additional parameters to pass |
a list of three updated cleaned data.frames, containing
PlayerStats |
Combined player statistics |
GoalieStats |
Combined goalie statistics |
PlayerMeta |
Meta statistics for all (goalies and players) |
1 2 | ## Not run: updatePlayers.HR()
## Not run: updatePlayers.HR(data_dir = './data/', years_back=2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.