get_team_stats_realgm: Load team stats from realgm.com

Description Usage Arguments Value Examples

View source: R/get_team_stats_realgm.R

Description

Load different types of team stats for chosen league and season from realgm.com. You need to specify league name, season and stats type.

Usage

1
get_team_stats_realgm(league, season, type, split = "Team_Totals")

Arguments

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

Value

data frame with team stats

Examples

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')

bziarkowski/euRobasket documentation built on Dec. 11, 2017, 5:35 a.m.