Skip to contents

[Experimental]

Usage

getTeamStats(season_code, team_code, phase_type = "All")

Arguments

season_code

One or more season codes as obtained from getCompetitionHistory().
Examples are E2023 for Euroleague or U2023 for Eurocup 2023.

team_code

One or more team codes as obtained from getCompetitionTeams().
Examples are ASV, MAD, ...

phase_type

One or more phase type codes as obtained from getCompetitionPhases().
Admitted values are RS for regular season, PO for playoffs and FF for final four. Default is All for all.

Value

Returns a list of elements for the chosen teams and seasons:

  • PlayerAccumulated. Total sum of statistics by player

  • PlayerAveragePerGame. Average per game of statistics by player

  • PlayerAveragePer40. Average per 40 minutes of statistics by player

  • TeamAccumulated. Total sum of statistics of team

  • TeamAveragePerGame. Average per game of statistics of teams

Glossary of columns:

Column nameColumn extended name
GPGame player
GSGame started
MINMinutes played
PTSPoints scored
2PMTwo-pointers made
2PATwo-pointers attempted
2P%Two-point %
3PMThree-pointers made
3PAThree-pointers attempted
3FG%Three-point %
FTMFree throws made
FTAFree throws attempted
FT%Free-throw %
OREBOffensive rebounds
DREBDefensive rebounds
TREBTotal rebounds
ASTAssists
STLSteals
TOTurnovers
BLKBlocks
BLKABlocks against
FCPersonal fouls committed
FDPersonal fouls drawn
PIRPerformance Index Rating

Reference webpage: Team

Examples


if (FALSE) {

  TeamStats = getTeamStats(team_code = "ASV", season_code = c("E2023", "E2022"), phase_type = "RS")

  TeamStats$PlayerAccumulated |> head(5)

  TeamStats$PlayerAveragePerGame |> head(5)

  TeamStats$PlayerAveragePer40 |> head(5)

  TeamStats$TeamAccumulated |> head(5)

  TeamStats$TeamAveragePerGame |> head(5)

}