Get NBA Team data by split
get_teams_season_stat_splits(teams = NULL, team_ids = NULL, season = 2018,
season_types = c("Regular Season"), measures = "Base",
modes = c("PerGame"), 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, outcomes = NA, playoff_rounds = 0,
shot_clock_ranges = NA, return_message = TRUE,
assign_to_environment = TRUE, add_mode_names = T)
vector of team names
vector of team ids
vector of season types options include
Regular Season
Pre Season
Playoffs
All Star
vector of measure types options include
Base
Advanced
Misc
Scoring
Four Factors
Opponent
Usage
vector of modes options include
PerGame
Totals
MinutesPer
Per48
Per40
Per36
PerMinute
PerPossession
PerPlay
Per100Possessions
Per100Plays
is plus minus TRUE
or FALSE
is pace adjusted TRUE
or FALSE
vector of periods 0:12
is rank TRUE
or FALSE
vector of game segments options include
NA
First Half
Second Half
Overtime
vector of divisions against options include
NA
Atlantic
Central
Northwest
Pacific
Southeast
Southwest
vector of conferences against options include
NA
East
West
vector of dates from
vector of dates to
vector of last_n games 0:82
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
vector of opponent names
if NA
all teams
vector of outcomes options include
NA
Wins
Losses
vector of playoff rounds options include code0:4
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
add mode nanmes
if TRUE
assigns data to environment
if TRUE
adds data to environment
vector of the start years
# NOT RUN {
get_teams_season_stat_splits(teams = c("Brooklyn Nets"), season = 2018, measures = c("Base", "Opponent"), modes = c("PerGame"), assign_to_environment = T, add_mode_names = T, return_message = TRUE)
# }
Run the code above in your browser using DataLab