Skip to contents

Get NBA Stats API Player Index

Get NBA Stats API Player Index

Usage

nba_playerindex(
  college = "",
  country = "",
  draft_pick = "",
  draft_round = "",
  draft_year = "",
  height = "",
  historical = 1,
  league_id = "00",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  team_id = "0",
  weight = "",
  ...
)

Arguments

college

Player College

country

Player Country

draft_pick

Draft Pick

draft_round

Draft Round

draft_year

Draft Year

height

Player Height

historical

Whether to include only current players (0) or all historical (1).

league_id

League - default: '00'. Other options include '10': WNBA, '20': G-League

season

Season - format 2020-21

season_type

Season Type - Regular Season, Playoffs, All-Star

team_id

Team ID. Default: 0 (all teams).

weight

Player weight

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: PlayerIndex

PlayerIndex

col_nametypes
PERSON_IDcharacter
PLAYER_LAST_NAMEcharacter
PLAYER_FIRST_NAMEcharacter
PLAYER_SLUGcharacter
TEAM_IDcharacter
TEAM_SLUGcharacter
IS_DEFUNCTcharacter
TEAM_CITYcharacter
TEAM_NAMEcharacter
TEAM_ABBREVIATIONcharacter
JERSEY_NUMBERcharacter
POSITIONcharacter
HEIGHTcharacter
WEIGHTcharacter
COLLEGEcharacter
COUNTRYcharacter
DRAFT_YEARcharacter
DRAFT_ROUNDcharacter
DRAFT_NUMBERcharacter
ROSTER_STATUScharacter
PTScharacter
REBcharacter
ASTcharacter
STATS_TIMEFRAMEcharacter
FROM_YEARcharacter
TO_YEARcharacter

Author

Saiem Gilani