Skip to contents

Get NBA Stats API Leaders Tiles

Get NBA Stats API Leaders Tiles

Usage

nba_leaderstiles(
  league_id = "00",
  game_scope = "Season",
  player_or_team = "Team",
  player_scope = "All Players",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  stat = "PTS",
  ...
)

Arguments

league_id

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

game_scope

Game Scope - Season, Last 10, ,Yesterday, Finals

player_or_team

Player or Team

player_scope

Player Scope - All Players, Rookies

season

Season - format 2020-21

season_type

Season Type - Regular Season, Playoffs

stat

Stat - PTS, REB, AST, FG_PCT, FT_PCT, FG3_PCT, STL, BLK

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: AllTimeSeasonHigh, LastSeasonHigh, LeadersTiles, LowSeasonHigh,

LeadersTiles

col_nametypes
RANKcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
PTScharacter

AllTimeSeasonHigh

col_nametypes
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
SEASON_YEARcharacter
PTScharacter

LastSeasonHigh

col_nametypes
RANKcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
PTScharacter

LowSeasonHigh

col_nametypes
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
TEAM_NAMEcharacter
SEASON_YEARcharacter
PTScharacter

Details

 nba_leaderstiles(league_id = '00', player_or_team = "Player")
 nba_leaderstiles(league_id = '00', player_or_team = "Team")

Author

Saiem Gilani