Learn R Programming

hockeyR (version 1.3.0)

get_player_stats_hr: Get player counting stats from hockey-reference.com

Description

Get player counting stats from hockey-reference.com

Usage

get_player_stats_hr(player_name, season = "career", league = "NHL")

Value

A tibble containing goals, assists, and various other stats for the specified player(s) from hockey-reference.com

Arguments

player_name

A player name or vector of player names

season

An integer value denoting the end year of the season(s) to scrape

league

The league stats to scrape, either 'NHL' or 'WHA'

Examples

Run this code
if (FALSE) {
#' get_player_stats("Wayne Gretzky")
get_player_stats_hr(c("Wayne Gretzky","Mario Lemieux"))
}

Run the code above in your browser using DataLab