Ref_Player_Scraper: HockeyRef Player Scraper

Description Usage Arguments Value

View source: R/Ref_Player_Scraper.R

Description

Returns data from a player given their url.

Usage

1
2
Ref_Player_Scraper(website, ages = c(17, 50), Stats = "all",
  Season = "R", sepTeam = F)

Arguments

website

the url of the player's webpage on hockey-reference.com.

ages

2-length vector for the age ranges desired. first number is lower-bound, second number is upper-bound.

Season

Determines if regular season data, playoff data, or both will be returned for all the players. 'R' for Regular Season, 'P' for Playoffs, 'RP' for both Regular Season and Playoffs

sepTeam

Boolean about whether you want rows for every team a player played on in the NHL in a give year, or if you just want the cumulative production combining the two teams.

playerStats

vector of the wanted player stats. possible values: stateSep - seperate goals, assists, and points based on strength (PP, SH, EV) Cor = Corsi, Fen = Fenwick, oiS = On-Ice shooting and save percentage, PDO = PDO, IceTime = Ice time, Awards = Awards with placement, pmBreak = plus/minus breakdown (GF, GA, etc.), PS = HockeyRef's point shares metric, xGF = Expected Goals For percentage

Value

data frame (or list of data frames) with data the desired player.


palmerimatthew/HockeyRefScraper documentation built on Nov. 4, 2019, 11:18 p.m.