updatePlayers.HR: Update player information (don't rescrape old players) from...

Description Usage Arguments Value Examples

View source: R/scrapePlayersHR.R

Description

Update player information (don't rescrape old players) from Hockey-Reference.com.

Usage

1
2
updatePlayers.HR(player_data, data_dir = "./data/players/",
  years_back = 1, player_list = NULL, ...)

Arguments

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 years_back years)

player_list

Optional player list to scrape from (default NULL –> get updated player list)

...

Additional parameters to pass

Value

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)

Examples

1
2
## Not run: updatePlayers.HR()
## Not run: updatePlayers.HR(data_dir = './data/', years_back=2

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