Get team statistics by season
Usage
get_team_statistics(
season = get_season_now()$seasonId,
report = "summary",
is_aggregate = FALSE,
is_game = FALSE,
dates = c("2025-01-01"),
game_types = 1:3
)
Arguments
- season
integer Season in YYYYYYYY
- report
string Report (check
get_configuration()
for possible inputs)- is_aggregate
boolean isAggregate where TRUE=regular and playoffs combined, if applicable
- is_game
boolean isGame where TRUE=rows by games and FALSE=rows by teams
- dates
vector of strings Date(s) in 'YYYY-MM-DD' (only if paired with
is_game
; too many dates will result in incomplete data)- game_types
vector of integers Game-type(s) where 1=pre-season, 2=regular, and 3=playoffs
Examples
playoff_team_stf_20242025 <- get_team_statistics(
season=20242025,
report='scoretrailfirst',
game_types=c(3)
)