Last chance! 50% off unlimited learning
Sale ends in
Get Synergy data for specified result type, category, season type and set
get_synergy_categories_stats(seasons = 2016:2018, result_types = c("player",
"team"), season_types = c("Regular Season"), set_types = c("offensive",
"defensive"), categories = c("Transition", "Isolation", "PRBallHandler",
"PRRollman", "Postup", "Spotup", "Handoff", "Cut", "OffScreen", "OffRebound",
"Misc"), results = 500, assign_to_environment = TRUE, spread_data = F,
nest_data = F, return_message = TRUE)
vector of seasons from 2016 onward
result type
team
player
type of season play
Playoffs
Regular Season
set type
offensive
defensive
vector of synergy categories options include:
Transition
Isolation
PRBallHandler
PRRollman
Postup
Spotup
Handoff
Cut
OffScreen
OffRebound
Misc
number of results
if TRUE
assigns table to environment
if assign_to_environment
returns a spread data_frame
a data_frame
# NOT RUN {
get_synergy_categories_stats(seasons = 2016:2018, result_types = c("player", "team"), season_types = c("Regular Season"), set_types = c("offensive", "defensive"), categories = c("Transition", "Isolation", "PRBallHandler", "PRRollman", "Postup", "Spotup", "Handoff", "Cut", "OffScreen", "OffRebound", "Misc"), results = 500, assign_to_environment = TRUE, spread_data = F, return_message = TRUE)
# }
Run the code above in your browser using DataLab