Description Usage Arguments Value Author(s) Examples
View source: R/get_team_boxscore.R
Download and process NBA.com team boxscores data from https://stats.nba.com/teams/boxscores-traditional/
1 2 3 4 5 6 7 8 9 10 11 12 | get_team_boxscore(
season,
date_from = "",
date_to = "",
measure_type = "",
outcome = "",
season_type = "Regular+Season",
opponent_team_id = "",
period = "",
game_segment = "",
verbose = TRUE
)
|
season |
Number of the year in which season started |
date_from |
Day from which data will be collected. It is set in MM/DD/YYYY format and by default is not specified, so data is calculated for whole season. |
date_to |
Day to which data will be collected. It is set in MM/DD/YYYY format and by default is not specified, so data is calculated for whole season. |
measure_type |
Specify type of data c('Base','Advanced','Four+Factors','Misc','Scoring') |
outcome |
Filter by game result. It can be a loss (L) or a win (W). By default parameter is an empty string, so both are taken into account. c("","W","L") |
season_type |
Choose data for preseason, regular season or postseason. Default parameter is "Regular+Season". c("Regular+Season","Playoffs","Pre+Season","All+Star") |
opponent_team_id |
Filter by opponent's team id from nba.com database. Default "0" means all teams. |
period |
Choose game period for the data. 0 means whole game and it is set by default. as.character(c(0:4)) |
game_segment |
Choose game half for the data. Empty string means whole game and it is set by default. c("","First+Half","Overtime","Second+Half") |
verbose |
Defalt TRUE - prints additional information |
Dataset from stats.nba.com
Patrick Chodowski, Chodowski.Patrick@gmail.com
1 | get_team_boxscore(season = 2018, measure_type = 'Advanced')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.