Skip to contents

Get NBA Stats API Cumulative Team Stats

Get NBA Stats API Cumulative Team Stats

Usage

nba_cumestatsteam(
  game_ids = "0022201094",
  league_id = "00",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  team_id = "1610612739",
  ...
)

Arguments

game_ids

game_ids

league_id

league_id

season

season

season_type

season_type

team_id

team_id

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: GameByGameStats, TotalTeamStats

GameByGameStats

col_nametypes
JERSEY_NUMcharacter
PLAYERcharacter
PERSON_IDcharacter
TEAM_IDcharacter
GPcharacter
GScharacter
ACTUAL_MINUTEScharacter
ACTUAL_SECONDScharacter
FGcharacter
FGAcharacter
FG_PCTcharacter
FG3character
FG3Acharacter
FG3_PCTcharacter
FTcharacter
FTAcharacter
FT_PCTcharacter
OFF_REBcharacter
DEF_REBcharacter
TOT_REBcharacter
ASTcharacter
PFcharacter
DQcharacter
STLcharacter
TURNOVERScharacter
BLKcharacter
PTScharacter
MAX_ACTUAL_MINUTEScharacter
MAX_ACTUAL_SECONDScharacter
MAX_REBcharacter
MAX_ASTcharacter
MAX_STLcharacter
MAX_TURNOVERScharacter
MAX_BLKPcharacter
MAX_PTScharacter
AVG_ACTUAL_MINUTEScharacter
AVG_ACTUAL_SECONDScharacter
AVG_REBcharacter
AVG_ASTcharacter
AVG_STLcharacter
AVG_TURNOVERScharacter
AVG_BLKPcharacter
AVG_PTScharacter
PER_MIN_REBcharacter
PER_MIN_ASTcharacter
PER_MIN_STLcharacter
PER_MIN_TURNOVERScharacter
PER_MIN_BLKcharacter
PER_MIN_PTScharacter

TotalTeamStats

col_nametypes
CITYcharacter
NICKNAMEcharacter
TEAM_IDcharacter
Wcharacter
Lcharacter
W_HOMEcharacter
L_HOMEcharacter
W_ROADcharacter
L_ROADcharacter
TEAM_TURNOVERScharacter
TEAM_REBOUNDScharacter
GPcharacter
GScharacter
ACTUAL_MINUTEScharacter
ACTUAL_SECONDScharacter
FGcharacter
FGAcharacter
FG_PCTcharacter
FG3character
FG3Acharacter
FG3_PCTcharacter
FTcharacter
FTAcharacter
FT_PCTcharacter
OFF_REBcharacter
DEF_REBcharacter
TOT_REBcharacter
ASTcharacter
PFcharacter
STLcharacter
TOTAL_TURNOVERScharacter
BLKcharacter
PTScharacter
AVG_REBcharacter
AVG_PTScharacter
DQcharacter

Details

CUME Stats

 nba_cumestatsteam(game_ids = '0022201094', season = '2022-23', team_id = '1610612739')

See also

Author

Saiem Gilani