NBA players table data

players_tables(
  players = NULL,
  player_ids = NULL,
  tables = c("year over year", "passes", "game splits"),
  measures = "Base",
  seasons = 2019,
  modes = c("PerGame", "Totals"),
  season_types = "Regular Season",
  playoff_rounds = NA,
  is_plus_minus = F,
  n_games = 20,
  is_rank = F,
  is_pace_adjusted = F,
  outcomes = NA,
  locations = NA,
  months = NA,
  season_segments = NA,
  date_from = NA,
  date_to = NA,
  opponent_ids = NA,
  vs_confs = NA,
  vs_divisions = NA,
  game_segments = NA,
  periods = NA,
  shot_clocks = NA,
  last_n_games = NA,
  assign_to_environment = TRUE,
  return_message = TRUE
)

Arguments

players

vector of player names

player_ids

vector of player ids

tables

vector of tables options

  • passes

  • clutch

  • game splits

  • general splits

  • opponent

  • next n games

  • player on off details

  • defense

  • game logs

  • rebounding

  • shot chart detail

  • shots

  • year over year

  • fantasy profile

measures

vector of measure types options include

  • Base

  • Advanced

  • Misc

  • Scoring

  • Four Factors

  • Opponent

  • Usage

  • Defense

seasons

vector of seasons

modes

vector of modes options include

  • PerGame

  • Totals

  • MinutesPer

  • Per48

  • Per40

  • Per36

  • PerMinute

  • PerPossession

  • PerPlay

  • Per100Possessions

  • Per100Plays

#'

season_types

vector of season types options include

  • Regular Season

  • Playoffs

  • Pre Season

  • All Star

  • PlayIn

playoff_rounds

vector of playoff rounds options include code0:4

is_plus_minus

TRUE returns plus minus

n_games

number n of last games

is_rank

if TRUE returns rank

is_pace_adjusted

if TRUE adjusts for pace

outcomes

vector of outcomes options include

  • NA

  • Wins

  • Losses

locations

vector of locations options include

  • NA

  • Home

  • Road

months

vector of game months options include 0:12

season_segments

vector of season segments, options include

  • NA

  • Post All-Star

  • Pre All-Star

date_from

NA or date from

date_to

NA or date to

opponent_ids

vector of opponent ids

vs_confs

vector of conferences against options include

  • NA

  • East

  • West

vs_divisions

vector of divisions against options include

  • NA

  • Atlantic

  • Central

  • Northwest

  • Pacific

  • Southeast

  • Southwest

game_segments

vector of game segments options include

  • NA

  • First Half

  • Second Half

  • Overtime

periods

vector of periods 0:12

shot_clocks

vector of shot clock ranges options include

  • NA,

  • 24-22

  • 22-18 Very Early

  • 18-15 Early

  • 15-7 Average

  • 7-4 Late

  • 4-0 Very Late

  • ShotClock Off

last_n_games

vector of last_n games 0:82

assign_to_environment

if TRUE assigns data to environment

return_message

if TRUE returns a message

Value

a tibble

See also

Examples

players_tables(players = c("Caris LeVert", "Joe Harris"), tables =  c("year over year", "passes", "game splits"),   modes = c("PerGame", "Totals"), measures = c("Base", "Advanced"), assign_to_environment = TRUE)