Skip to contents

Get NBA Stats API Player Fantasy Profile Bar Graph

Get NBA Stats API Player Fantasy Profile Bar Graph

Usage

nba_playerfantasyprofilebargraph(
  league_id = "00",
  player_id = "2544",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  ...
)

Arguments

league_id

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

player_id

Player ID

season

Season - format 2020-21

season_type

Season Type - Regular Season, Playoffs, All-Star

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: LastFiveGamesAvg, SeasonAvg

SeasonAvg

col_nametypesdescription
PLAYER_IDcharacterUnique player identifier.
PLAYER_NAMEcharacterPlayer name.
TEAM_IDcharacterUnique team identifier.
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter
PTScharacterPoints scored.
REBcharacterTotal rebounds.
ASTcharacterAssists.
FG3McharacterThree-point field goals made.
FT_PCTcharacterFree throw percentage (0-1).
STLcharacterSteals.
BLKcharacterBlocks.
TOVcharacterTurnovers.
FG_PCTcharacterField goal percentage (0-1).

LastFiveGamesAvg

col_nametypesdescription
PLAYER_IDcharacterUnique player identifier.
PLAYER_NAMEcharacterPlayer name.
TEAM_IDcharacterUnique team identifier.
TEAM_ABBREVIATIONcharacterShort team abbreviation (e.g. 'LAS').
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter
PTScharacterPoints scored.
REBcharacterTotal rebounds.
ASTcharacterAssists.
FG3McharacterThree-point field goals made.
FT_PCTcharacterFree throw percentage (0-1).
STLcharacterSteals.
BLKcharacterBlocks.
TOVcharacterTurnovers.
FG_PCTcharacterField goal percentage (0-1).

Details

Author

Saiem Gilani