Skip to contents

Retrieves G-League player index data via the NBA Stats API player index endpoint.

Usage

nbagl_players(
  college = "",
  country = "",
  draft_pick = "",
  draft_round = "",
  draft_year = "",
  height = "",
  historical = 1,
  league_id = "20",
  player_position = "",
  season = year_to_season(most_recent_nba_season() - 2),
  season_type = "Regular Season",
  team_id = "0",
  weight = "",
  active = "",
  all_star = "",
  ...
)

Arguments

college

College filter.

country

Country filter.

draft_pick

Draft pick filter.

draft_round

Draft round filter.

draft_year

Draft year filter.

height

Height filter.

historical

Historical flag.

league_id

League - default: '20' (G-League).

player_position

Player position filter.

season

Season - format 2020-21.

season_type

Season Type - Regular Season, Playoffs, All-Star.

team_id

Team ID filter.

weight

Weight filter.

active

Active status filter.

all_star

All-Star filter.

...

Additional arguments passed to an underlying function like httr.

Value

A named list of data frames: PlayerIndex. Their column names and types are in return_columns, e.g. subset(return_columns, fn == "nbagl_players"), and in the searchable return columns article.

Details

Author

Billy Fryer