Skip to contents

get_team_statistics() retrieves information on each team or game for a given set of season, game_types, and report. dates must be given when paired with is_game as the default range will return incomplete data (too wide). Access get_configuration() for what information each combination of report, is_aggregate and is_game can provide. Access get_team_seasons() for season and dates references. Will soon be reworked for easier access.

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 in YYYYYYYY

report

string

is_aggregate

boolean

is_game

boolean

dates

vector of strings in 'YYYY-MM-DD'

game_types

vector of integers where 1=pre-season, 2=regular, and 3=playoffs

Value

tibble with one row per team or game

Examples

playoff_team_stf_20242025 <- get_team_statistics(
  season=20242025,
  report='scoretrailfirst',
  game_types=c(3)
)