nba_shotchartdetail: *Get NBA Stats API Shot Chart Detail*

View source: R/nba_stats_shotchart.R

nba_shotchartdetailR Documentation

Get NBA Stats API Shot Chart Detail

Description

Get NBA Stats API Shot Chart Detail

Get NBA Stats API Shot Chart Detail

Usage

nba_shotchartdetail(
  context_measure = "FGA",
  date_from = "",
  date_to = "",
  game_id = "",
  game_segment = "",
  last_n_games = 0,
  league_id = "00",
  location = "",
  month = 0,
  opponent_team_id = 0,
  outcome = "",
  period = 0,
  player_id = "202696",
  player_position = "",
  rookie_year = "",
  season = year_to_season(most_recent_nba_season() - 1),
  season_segment = "",
  season_type = "Regular Season",
  team_id = 0,
  vs_conference = "",
  vs_division = "",
  ...
)

Arguments

context_measure

context_measure

date_from

date_from

date_to

date_to

game_id

game_id

game_segment

game_segment

last_n_games

last_n_games

league_id

league_id

location

location

month

month

opponent_team_id

opponent_team_id

outcome

outcome

period

period

player_id

player_id

player_position

player_position

rookie_year

rookie_year

season

season

season_segment

season_segment

season_type

season_type

team_id

team_id

vs_conference

vs_conference

vs_division

vs_division

...

Additional arguments passed to an underlying function like httr.

Details

 nba_shotchartdetail(league_id = '00', player_id = '202696', season = year_to_season(most_recent_nba_season() - 1))

Value

Return a named list of data frames: LeagueAverages, Shot_Chart_Detail

Shot_Chart_Detail

col_name types
GRID_TYPE character
GAME_ID character
GAME_EVENT_ID character
PLAYER_ID character
PLAYER_NAME character
TEAM_ID character
TEAM_NAME character
PERIOD character
MINUTES_REMAINING character
SECONDS_REMAINING character
EVENT_TYPE character
ACTION_TYPE character
SHOT_TYPE character
SHOT_ZONE_BASIC character
SHOT_ZONE_AREA character
SHOT_ZONE_RANGE character
SHOT_DISTANCE character
LOC_X character
LOC_Y character
SHOT_ATTEMPTED_FLAG character
SHOT_MADE_FLAG character
GAME_DATE character
HTM character
VTM character

LeagueAverages

col_name types
GRID_TYPE character
SHOT_ZONE_BASIC character
SHOT_ZONE_AREA character
SHOT_ZONE_RANGE character
FGA character
FGM character
FG_PCT character

Author(s)

Saiem Gilani

See Also

Other NBA Shooting Functions: nba_leaguedashplayershotlocations(), nba_leaguedashteamptshot(), nba_leaguedashteamshotlocations(), nba_playerdashboardbyshootingsplits(), nba_shotchartleaguewide(), nba_shotchartlineupdetail(), nba_teamdashboardbyshootingsplits()


hoopR documentation built on Nov. 26, 2023, 1:07 a.m.