Skip to contents

Get NBA Stats API Team vs Player

Get NBA Stats API Team vs Player

Usage

nba_teamvsplayer(
  date_from = "",
  date_to = "",
  game_segment = "",
  last_n_games = 0,
  league_id = "00",
  location = "",
  measure_type = "Base",
  month = 0,
  opponent_team_id = 0,
  outcome = "",
  po_round = "",
  pace_adjust = "N",
  per_mode = "Totals",
  period = 0,
  player_id = "",
  plus_minus = "N",
  rank = "N",
  season = year_to_season(most_recent_nba_season() - 1),
  season_segment = "",
  season_type = "Regular Season",
  shot_clock_range = "",
  team_id = "1610612749",
  vs_conference = "",
  vs_division = "",
  vs_player_id = "2544",
  ...
)

Arguments

date_from

date_from

date_to

date_to

game_segment

game_segment

last_n_games

last_n_games

league_id

league_id

location

location

measure_type

measure_type

month

month

opponent_team_id

opponent_team_id

outcome

outcome

po_round

po_round

pace_adjust

pace_adjust

per_mode

per_mode

period

period

player_id

Player ID

plus_minus

plus_minus

rank

rank

season

season

season_segment

season_segment

season_type

season_type

shot_clock_range

shot_clock_range

team_id

team_id

vs_conference

vs_conference

vs_division

vs_division

vs_player_id

vs_player_id

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: OnOffCourt, Overall, ShotAreaOffCourt, ShotAreaOnCourt, ShotAreaOverall, ShotDistanceOffCourt, ShotDistanceOnCourt, ShotDistanceOverall, vsPlayerOverall

Overall

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
GPcharacter
Wcharacter
Lcharacter
W_PCTcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
TOVcharacter
STLcharacter
BLKcharacter
BLKAcharacter
PFcharacter
PFDcharacter
PTScharacter
PLUS_MINUScharacter
GP_RANKcharacter
W_RANKcharacter
L_RANKcharacter
W_PCT_RANKcharacter
MIN_RANKcharacter
FGM_RANKcharacter
FGA_RANKcharacter
FG_PCT_RANKcharacter
FG3M_RANKcharacter
FG3A_RANKcharacter
FG3_PCT_RANKcharacter
FTM_RANKcharacter
FTA_RANKcharacter
FT_PCT_RANKcharacter
OREB_RANKcharacter
DREB_RANKcharacter
REB_RANKcharacter
AST_RANKcharacter
TOV_RANKcharacter
STL_RANKcharacter
BLK_RANKcharacter
BLKA_RANKcharacter
PF_RANKcharacter
PFD_RANKcharacter
PTS_RANKcharacter
PLUS_MINUS_RANKcharacter

vsPlayerOverall

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
PLAYER_IDcharacter
GPcharacter
Wcharacter
Lcharacter
W_PCTcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
TOVcharacter
STLcharacter
BLKcharacter
BLKAcharacter
PFcharacter
PFDcharacter
PTScharacter
PLUS_MINUScharacter
NBA_FANTASY_PTScharacter
DD2character
TD3character
WNBA_FANTASY_PTScharacter
GP_RANKcharacter
W_RANKcharacter
L_RANKcharacter
W_PCT_RANKcharacter
MIN_RANKcharacter
FGM_RANKcharacter
FGA_RANKcharacter
FG_PCT_RANKcharacter
FG3M_RANKcharacter
FG3A_RANKcharacter
FG3_PCT_RANKcharacter
FTM_RANKcharacter
FTA_RANKcharacter
FT_PCT_RANKcharacter
OREB_RANKcharacter
DREB_RANKcharacter
REB_RANKcharacter
AST_RANKcharacter
TOV_RANKcharacter
STL_RANKcharacter
BLK_RANKcharacter
BLKA_RANKcharacter
PF_RANKcharacter
PFD_RANKcharacter
PTS_RANKcharacter
PLUS_MINUS_RANKcharacter
NBA_FANTASY_PTS_RANKcharacter
DD2_RANKcharacter
TD3_RANKcharacter
WNBA_FANTASY_PTS_RANKcharacter

OnOffCourt

col_nametypes
GROUP_SETcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
VS_PLAYER_IDcharacter
VS_PLAYER_NAMEcharacter
COURT_STATUScharacter
GPcharacter
Wcharacter
Lcharacter
W_PCTcharacter
MINcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter
FG3Mcharacter
FG3Acharacter
FG3_PCTcharacter
FTMcharacter
FTAcharacter
FT_PCTcharacter
OREBcharacter
DREBcharacter
REBcharacter
ASTcharacter
TOVcharacter
STLcharacter
BLKcharacter
BLKAcharacter
PFcharacter
PFDcharacter
PTScharacter
PLUS_MINUScharacter
GP_RANKcharacter
W_RANKcharacter
L_RANKcharacter
W_PCT_RANKcharacter
MIN_RANKcharacter
FGM_RANKcharacter
FGA_RANKcharacter
FG_PCT_RANKcharacter
FG3M_RANKcharacter
FG3A_RANKcharacter
FG3_PCT_RANKcharacter
FTM_RANKcharacter
FTA_RANKcharacter
FT_PCT_RANKcharacter
OREB_RANKcharacter
DREB_RANKcharacter
REB_RANKcharacter
AST_RANKcharacter
TOV_RANKcharacter
STL_RANKcharacter
BLK_RANKcharacter
BLKA_RANKcharacter
PF_RANKcharacter
PFD_RANKcharacter
PTS_RANKcharacter
PLUS_MINUS_RANKcharacter

ShotDistanceOverall

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter

ShotDistanceOnCourt

col_nametypes
GROUP_SETcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
VS_PLAYER_IDcharacter
VS_PLAYER_NAMEcharacter
COURT_STATUScharacter
GROUP_VALUEcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter

ShotDistanceOffCourt

col_nametypes
GROUP_SETcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
VS_PLAYER_IDcharacter
VS_PLAYER_NAMEcharacter
COURT_STATUScharacter
GROUP_VALUEcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter

ShotAreaOverall

col_nametypes
GROUP_SETcharacter
GROUP_VALUEcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter

ShotAreaOnCourt

col_nametypes
GROUP_SETcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
VS_PLAYER_IDcharacter
VS_PLAYER_NAMEcharacter
COURT_STATUScharacter
GROUP_VALUEcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter

ShotAreaOffCourt

col_nametypes
GROUP_SETcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
VS_PLAYER_IDcharacter
VS_PLAYER_NAMEcharacter
COURT_STATUScharacter
GROUP_VALUEcharacter
FGMcharacter
FGAcharacter
FG_PCTcharacter

Details

 nba_teamvsplayer(team_id = '1610612749', vs_player_id = '2544')

Author

Saiem Gilani