Gets NBA summary statistics tables
get_teams_players_seasons_summary_stats(seasons = 2018, types = c("player",
"team"), tables = c("defense"), season_types = "Regular Season",
measures = "Base", modes = "PerGame", defenses = "Overall",
is_plus_minus = F, is_pace_adjusted = F, periods = 0, is_rank = F,
game_segments = NA, divisions_against = NA, conferences_against = NA,
date_from = NA, date_to = NA, last_n_games = 0, locations = NA,
months = 0, season_segments = NA, opponents = NA, countries = NA,
weights = NA, outcomes = NA, playoff_rounds = 0,
players_experience = NA, players_positions = NA, colleges = NA,
draft_picks = NA, draft_years = NA, game_scopes = NA, heights = NA,
shot_clock_ranges = NA, clutch_times = "Last 5 Minutes",
ahead_or_behind = "Ahead or Behind", general_ranges = "Overall",
dribble_ranges = "0 Dribbles", shot_distance_ranges = "By Zone",
touch_time_ranges = NA, closest_defender_ranges = NA, point_diffs = 5,
starters_bench = NA, assign_to_environment = TRUE, add_mode_names = T,
return_message = TRUE)
vector of seasons
type of data options include
player
team
type of table options include
clutch
defense
general
hustle
shot locations
shots
splits
vector of season types options
Pre Season
Regular Season
Playoffs
All Star
vector of measures options
Base
Advanced
Defense
Four Factors
Misc
Opponent
Scoring
Usage
vector of modes options
Totals
MinutesPer
PerGame
Per48
Per40
Per36
PerMinute
PerPossession
PerPlay
Per100Possessions
Per100Plays
defense options include
Overall
3 Pointers
2 Pointers
Less Than 6Ft
Less Than 10Ft
Greater Than 15Ft
if `TRUE` uses plus minus
if `TRUE` is pace adjusted
vector of periods
if `TRUE` returns rank
vector of game segments options
NA - All
First Half
Second Half
Overtime
vector of seasons options
NA - ALL
Atlantic
Central
Northwest
Pacific
Southeast
Southwest
East
West
vector of conferences against options
NA - ALL
East
West
dates from
dates to
vector games
vector of locations
vector of months 0:12
vector of seasons segments options
NA
Pre All-Star
Post All-Star
vector of opponent ids
vector of countries
vector of weights options
NA
LT 200
GT 200
LT 225
GT 225
LT 250
GT 250
LT 275
GT 275
LT 300
GT 300
vector of outcomes options
NA - all
W
L
vector of playoff rounds options 0:4
vector of experience options
NA
Rookie
Sophomore
Veteran
vector of player positions options
NA
C
F
G
vector of colleges
vector of draft picks options
NA
1st Round
2nd Round
1st Pick
Lottery Pick
Top 5 Pick
Top 10 Pick
Top 15 Pick
Top 20 Pick
Top 25 Pick
Picks 11 Thru 20
Picks 21 Thru 30
Undrafted
numeric vector vector of draft years
vector game scopes options
NA
Last 10
Yesterday
vector of heights options
NA
LT 6-0
GT 6-0
LT 6-4
GT 6-4
LT 6-7
GT 6-7
LT 6-10
GT 6-10
LT 7-0
GT 7-0
character vector of shot clock ranges options
NA
24-22
22-18 Very Early
18-15 Early
15-7 Average
7-4 Late
4-0 Very Late
ShotClock Off
clutch options options
NA
Last 5 Minutes
Last 4 Minutes
Last 3 Minutes
Last 2 Minutes
Last 1 Minute
Last 30 Seconds
Last 10 Seconds
ahead of behind type options
Ahead or Behind
Behind or Tied
Ahead or Tied
general shop type ranges options include
Overall
Catch and Shoot
Less Than 10 ft
Pullups
range of dribbles options include
0 Dribbles
1 Dribble
2 Dribbles
3-6 Dribbles
7+ Dribbles
shot distance
touch time range options include
Touch < 2 Seconds
Touch 2-6 Seconds
Touch 6+ Seconds
closest defender range options include
NA
0-2 Feet - Very Tight
2-4 Feet - Tight
4-6 Feet - Open
6+ Feet - Wide Open
numeric vector between 1:5
vector of starter type options
NA
Bench
Starters
if `TRUE` assigns tables to environment
if `TRUE` adds mode names
if `TRUE` returns a message
a `data_frame`
Other players: get_nba_player_injuries
,
get_players_bios
,
get_seasons_metrics_league_leaders
Other teams: get_drafts
,
get_seasons_rosters
,
get_teams_franchise_leaders
,
get_teams_seasons_rankings
# NOT RUN {
get_teams_players_seasons_summary_stats(seasons = 2018, types = c("player", "team"),
modes = c("PerGame", "Totals"),
tables = c("general", "defense", "clutch", "hustle", "shots", "shot locations"))
# }
Run the code above in your browser using DataLab