Description Usage Arguments Value Examples
get specific stats for a provided player
1 | getPlayerStats(player, stat = NULL, season = NULL)
|
player |
The player ID to get stats |
stat |
The speific stats to get. Many options exist, see |
season |
a season, if required or desired, for querying stats. Format: 20172018 for the 2017-2018 season |
The API output of player
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.