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_nametypes
PLAYER_IDcharacter
PLAYER_NAMEcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter
PTScharacter
REBcharacter
ASTcharacter
FG3Mcharacter
FT_PCTcharacter
STLcharacter
BLKcharacter
TOVcharacter
FG_PCTcharacter

LastFiveGamesAvg

col_nametypes
PLAYER_IDcharacter
PLAYER_NAMEcharacter
TEAM_IDcharacter
TEAM_ABBREVIATIONcharacter
FAN_DUEL_PTScharacter
NBA_FANTASY_PTScharacter
PTScharacter
REBcharacter
ASTcharacter
FG3Mcharacter
FT_PCTcharacter
STLcharacter
BLKcharacter
TOVcharacter
FG_PCTcharacter

Details

Author

Saiem Gilani