Description Usage Arguments Value Examples
Returns the team stats, both single season numbers and league ranking. Convenience wrapper around getTeam(team = team, modifier = team.stats, season = season)
.
1 | getTeamStats(team, season = NULL)
|
team |
The team stats to get. Required. |
season |
Which season's stats to get. Optional, will get the current years' stats if not supplied |
Team stats from the API
1 2 3 4 5 | #See stats from the Philadelphia Flyers (ID = 4)
flyers <- getTeamStats(4)
#See their stats from 20112012
flyers_past <- getTeamStats(4, season = 20112012)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.