Skip to contents

Get NBA Stats API Fantasy Widget

Get NBA Stats API Fantasy Widget

Usage

nba_fantasywidget(
  active_players = "N",
  date_from = "",
  date_to = "",
  last_n_games = 0,
  league_id = "00",
  location = "",
  month = "",
  opponent_team_id = "",
  po_round = "",
  player_id = "",
  position = "",
  season = year_to_season(most_recent_nba_season() - 1),
  season_segment = "",
  season_type = "Regular Season",
  team_id = "",
  todays_opponent = 0,
  todays_players = "N",
  vs_conference = "",
  vs_division = "",
  ...
)

Arguments

active_players

active_players

date_from

date_from date_from

date_to

date_to date_to

last_n_games

last_n_games

league_id

league_id

location

location

month

month

opponent_team_id

opponent_team_id

po_round

po_round

player_id

player_id

position

position

season

season

season_segment

season_segment

season_type

season_type

team_id

team_id

todays_opponent

todays_opponent

todays_players

todays_players

vs_conference

vs_conference

vs_division

vs_division

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: FantasyWidgetResult

FantasyWidgetResult

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

Details

 nba_fantasywidget(league_id = '00', season = year_to_season(most_recent_nba_season() - 1))

Author

Saiem Gilani