nba_playerindex: *Get NBA Stats API Player Index*

View source: R/nba_stats_player.R

nba_playerindexR Documentation

Get NBA Stats API Player Index

Description

Get NBA Stats API Player Index

Get NBA Stats API Player Index

Usage

nba_playerindex(
  college = "",
  country = "",
  draft_pick = "",
  draft_round = "",
  draft_year = "",
  height = "",
  historical = 1,
  league_id = "00",
  season = year_to_season(most_recent_nba_season() - 1),
  season_type = "Regular Season",
  team_id = "0",
  weight = "",
  ...
)

Arguments

college

Player College

country

Player Country

draft_pick

Draft Pick

draft_round

Draft Round

draft_year

Draft Year

height

Player Height

historical

Whether to include only current players (0) or all historical (1).

league_id

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

season

Season - format 2020-21

season_type

Season Type - Regular Season, Playoffs, All-Star

team_id

Team ID. Default: 0 (all teams).

weight

Player weight

...

Additional arguments passed to an underlying function like httr.

Details

Player Index

 nba_playerindex()

Value

Return a named list of data frames: PlayerIndex

PlayerIndex

col_name types
PERSON_ID character
PLAYER_LAST_NAME character
PLAYER_FIRST_NAME character
PLAYER_SLUG character
TEAM_ID character
TEAM_SLUG character
IS_DEFUNCT character
TEAM_CITY character
TEAM_NAME character
TEAM_ABBREVIATION character
JERSEY_NUMBER character
POSITION character
HEIGHT character
WEIGHT character
COLLEGE character
COUNTRY character
DRAFT_YEAR character
DRAFT_ROUND character
DRAFT_NUMBER character
ROSTER_STATUS character
PTS character
REB character
AST character
STATS_TIMEFRAME character
FROM_YEAR character
TO_YEAR character

Author(s)

Saiem Gilani

See Also

Other NBA Player Functions: nba_infographicfanduelplayer(), nba_leaguedashplayerbiostats(), nba_leaguedashplayerclutch(), nba_leaguedashplayershotlocations(), nba_leaguedashplayerstats(), nba_leagueplayerondetails(), nba_leagueseasonmatchups(), nba_matchupsrollup(), nba_playerawards(), nba_playercareerbycollegerollup(), nba_playercareerbycollege(), nba_playercareerstats(), nba_playercompare(), nba_playerdashboardbyclutch(), nba_playerdashboardbygamesplits(), nba_playerdashboardbygeneralsplits(), nba_playerdashboardbylastngames(), nba_playerdashboardbyopponent(), nba_playerdashboardbyshootingsplits(), nba_playerdashboardbyteamperformance(), nba_playerdashboardbyyearoveryear(), nba_playerdashptpass(), nba_playerdashptreb(), nba_playerdashptshotdefend(), nba_playerdashptshots(), nba_playerestimatedmetrics(), nba_playerfantasyprofilebargraph(), nba_playerfantasyprofile(), nba_playergamelogs(), nba_playergamelog(), nba_playergamestreakfinder(), nba_playerheadshot(), nba_playernextngames(), nba_playerprofilev2(), nba_playervsplayer()


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