getPlayerStats: Get Player's Stats

Description Usage Arguments Value Examples

Description

get specific stats for a provided player

Usage

1
getPlayerStats(player, stat = NULL, season = NULL)

Arguments

player

The player ID to get stats

stat

The speific stats to get. Many options exist, see getPlayerStatTypes() for full list

season

a season, if required or desired, for querying stats. Format: 20172018 for the 2017-2018 season

Value

The API output of player

Examples

1
2
3
4
5
#See Sidney Crosby's stats
crosby_stats <- getPlayerStats(player = 8471675)

#Or, see his stats broken up by month for 20162017
crosby_month <- getPlayerStats(player = 8471675, stat = 'byMonth', season = 20162017)

pbulsink/nhlRapi documentation built on June 27, 2019, 6:35 p.m.