get_team_boxscore: Download boxscores data for Teams

Description Usage Arguments Value Author(s) Examples

View source: R/get_team_boxscore.R

Description

Download and process NBA.com team boxscores data from https://stats.nba.com/teams/boxscores-traditional/

Usage

 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
)

Arguments

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

Value

Dataset from stats.nba.com

Author(s)

Patrick Chodowski, Chodowski.Patrick@gmail.com

Examples

1
get_team_boxscore(season = 2018, measure_type = 'Advanced')

PatrickChodowski/NBAr documentation built on April 20, 2021, 10:21 p.m.