Learn R Programming

nbastatR (version 0.1.11003)

get_players_tables_data: NBA players table data

Description

NBA players table data

Usage

get_players_tables_data(players = NULL, player_ids = NULL,
  tables = c("year over year", "passes", "game splits"), measures = "Base",
  seasons = 2018, 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 = T, return_message = TRUE)

Arguments

players

vector of player names

player_ids

vector of player ids

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

  • Pre Season

  • Playoffs

  • All Star

playoff_rounds

vector of playoff rounds options include code0:4

is_plus_minus

TRUE retuns 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

last_n_games

vector of last_n games 0:82

assign_to_environment

if TRUE assigns data to environment

Value

a data_frame

Examples

Run this code
# NOT RUN {
get_players_tables_data(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 = T)
# }

Run the code above in your browser using DataLab