Description Usage Arguments Value
View source: R/scrape_game_logs.R
This function scrapes the per game player statistics for a single season.
1 | scrape_game_logs(player_id, year)
|
player_id |
The basketball-reference player page identifier code. |
year |
The year that the season in question finished. i.e. 2015 would return the statistics for the season 2014-15. |
A tibble with a row for each player.
The fields are:
The regular season the game took place in
Player name
Season game
The date the game took place on
The age of the player on the day of the game
Team
Opposition
Games started
Minutes played
Field goals
Field goal attempts
Field goal percentage
3-point field goals
3-point field goal attempts
Field goal percentage on 3-point field goal attempts
Free throws
Free throw attempts
Free throw percentage
Offensive rebounds
Defensive rebounds
Total rebounds
Assists
Steals
Blocks
Turnovers
Personal fouls
Points
Game score
Plus minus (possibly)
https://www.basketball-reference.com/ player page identifier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.