Description Usage Arguments Value Examples
This function retrieves NBA player data for a specific season, specified by year. There will be one row per player X team combination. That is, if a player played for multiple teams in one season, they will show up on multiple rows (one row for each team).
1 | get_season(year)
|
year |
Which season do you want data for? If you want the 2016-2017 data, use the latter year (2017). |
A data.frame with a row for each player X team combo in that season.
The columns include:
Player name
Position
Age in years
Team
Games played
Games started
Minutes played
Field goals made
Field goals attempted
Field goal shooting percentage
Three point shots made
Three point shots attempted
Three point shooting percentage
Two point shots made
Two point shots attempted
Two point shooting percentage
Effective field goal percentage (adjusts for fact that 3 pointers are worth one more point than two pointers)
Free throws made
Free throw attempts
Free throw percentage
Offensive rebounds
Defensive rebounds
Total rebounds
Assists
Steals
Blocks
Turnovers
Personal fouls
Points made
Year season began
Year seson ended
1 | d <- get_season(2010)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.