Description Usage Arguments Value Examples
Load different types of team stats for chosen league and season from realgm.com. You need to specify league name, season and stats type.
1 | get_team_stats_realgm(league, season, type, split = "Team_Totals")
|
league |
character, league name from realgm.com, you can find all available names using get_realgm_league_names() |
season |
numeric, second year of season, ie. for season 2016-17 use 2017, for season 2013-14 use 2014 |
type |
character, type of stats to download, choose from: Totals, Averages, Per_48, Per_40, Per_36, Per_Minute, Minute_Per, Misc_Stats, Advanced_Stats |
split |
character, 'Team_Totals' set by default, choose from: Team_Totals, Team_Starters, Team_Bench, Opponent_Totals, Opponent_Starters, Opponent_Bench |
data frame with team stats
1 2 3 4 5 6 | #Load Advanced Stats for Spanish ACB Teams, season 2014-15
get_team_stats_realgm('Spanish ACB', 2015, type = 'Advanced_Stats')
#Load Totals for British BBL teams, season 2015-16,
#use 'Opponent Starters as a split
get_team_stats_realgm('British BBL', 2016, type = 'Totals', split = 'Opponent_Starters')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.