Returns NBA team data for specified teams and parameters by seasons
get_teams_tables_data(teams = NULL, team_ids = NULL, all_active_teams = F,
seasons = 2018, tables = NULL, measures = NULL, modes = NULL,
season_types = "Regular Season", playoff_rounds = NA, is_plus_minus = F,
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)
vector of NBA team names
vector of team ids
if TRUE
returns data for all active teams
vector of seasons
vector of table names options include
splits
passes
clutch
lineup
opponent
performance
player on off details
player on off summary
player
rebounding
shooting
shots
team vs player
year over year
vector of measure types options include
Base
Advanced
Misc
Scoring
Four Factors
Opponent
Usage
Defense
vector of modes options include
PerGame
Totals
MinutesPer
Per48
Per40
Per36
PerMinute
PerPossession
PerPlay
Per100Possessions
Per100Plays
#'
vector of season types options include
Regular Season
Pre Season
Playoffs
All Star
vector of playoff rounds options include code0:4
TRUE
returns plus minus
if TRUE
returns rank
if TRUE
adjusts for pace
vector of outcomes options include
NA
Wins
Losses
vector of locations options include
NA
Home
Road
vector of game months options include 0:12
vector of season segments, options include
NA
Post All-Star
Pre All-Star
NA
or date from
NA
or date to
vector of opponent ids
vector of conferences against options include
NA
East
West
vector of divisions against options include
NA
Atlantic
Central
Northwest
Pacific
Southeast
Southwest
vector of game segments options include
NA
First Half
Second Half
Overtime
vector of periods 0:12
vector of last_n games 0:82
if TRUE
assigns data to environment
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
if TRUE
returns message
a data_frame
# NOT RUN {
get_teams_tables_data(teams = c("Brooklyn Nets", "New York Knicks"),
seasons = 2017:2018, tables = c("splits", "shooting"), measures = "Base", modes = c("PerGame", "Totals"))
# }
Run the code above in your browser using DataLab