AFL/W statistics
Overview
The fitzRoy package allows samples of AFL player and team statistics to be created, for both the women’s (AFLW) and men’s competitions.
Getting the data
library(fitzRoy)
aflw <- fetch_player_stats(season = 2025, comp = "AFLW")
afl <- fetch_player_stats(season = 2025, comp = "AFLM")Data dictionary
One row per player per match. The 2025 AFLW season gives 4,918 rows and 70 columns; the AFL (men’s) data has 95 columns because it also includes the extendedStats.* variables. Checked with fitzRoy 1.8.0 (December 2026), using the default source = "AFL".
Match and team
| variable | class | description |
|---|---|---|
providerId |
character | Match identifier, e.g. CD_M20252640101. |
utcStartTime |
character | Match start time in UTC, ISO 8601 text (e.g. 2025-08-14T09:15:00.000+0000). |
status |
character | Match status, e.g. CONCLUDED. |
compSeason.shortName |
character | Competition and season, e.g. 2025 AFL Womens, Premiership. |
round.name |
character | Round name, e.g. Round 1, Semi Finals, Grand Final. |
round.roundNumber |
integer | Round number; finals continue the numbering after the home-and-away rounds. |
venue.name |
character | Ground name, e.g. MCG. |
home.team.name, away.team.name |
character | Home and away team names. |
home.team.club.name, away.team.club.name |
character | Club names (the same as the team names in 2025). |
teamId |
character | Identifier of the player’s team, e.g. CD_T120. |
team.name |
character | Name of the player’s team. |
teamStatus |
character | Whether the player’s team was home or away. |
Player
| variable | class | description |
|---|---|---|
player.playerId |
character | Player identifier, e.g. CD_I1028525; use this to join across matches and seasons. |
player.givenName, player.surname |
character | Player’s first name and surname. |
player.jumperNumber |
integer | Jumper number worn in the match. |
player.photoURL |
character | URL of the player’s headshot. |
player.player.position |
character | Named position for the match: FB, BPL, BPR, CHB, HBFL, HBFR, C, WL, WR, CHF, HFFL, HFFR, FF, FPL, FPR, RK (ruck), R (rover), RR (ruck rover), INT (interchange), SUB (substitute). |
player.captain |
logical | Whether the player was captain. |
player.playerJumperNumber |
integer | Duplicate of player.jumperNumber. |
player.player.player.* |
Duplicates of player.playerId, player.captain, player.playerJumperNumber, player.givenName, player.surname. |
Match statistics
All counts are for the player in that match.
| variable | class | description |
|---|---|---|
timeOnGroundPercentage |
numeric | Percentage of the match the player spent on the ground. |
goals, behinds |
numeric | Goals (6 points) and behinds (1 point) kicked. |
shotsAtGoal |
numeric | Shots at goal. |
goalAccuracy |
numeric | Goals as a percentage of shots at goal. |
goalAssists |
numeric | Disposals that led directly to a goal. |
kicks, handballs |
numeric | Kicks and handballs. |
disposals |
numeric | Kicks + handballs. |
disposalEfficiency |
numeric | Percentage of disposals that were effective (0–100). |
contestedPossessions, uncontestedPossessions |
numeric | Possessions won in a contest / not under pressure. |
totalPossessions |
numeric | Contested + uncontested possessions. |
marks |
numeric | Marks taken. |
contestedMarks |
numeric | Marks taken under physical pressure. |
marksInside50 |
numeric | Marks taken inside the forward 50. |
bounces |
numeric | Bounces while running with the ball. |
tackles |
numeric | Tackles laid. |
tacklesInside50 |
numeric | Tackles laid inside the forward 50. |
hitouts |
numeric | Ruck hitouts (mainly ruck players). |
onePercenters |
numeric | Spoils, smothers, shepherds and similar defensive acts. |
inside50s |
numeric | Times the player moved the ball into the forward 50. |
rebound50s |
numeric | Times the player moved the ball out of the defensive 50. |
clearances.centreClearances, clearances.stoppageClearances |
numeric | Clearances from centre bounces and from other stoppages. |
clearances.totalClearances |
numeric | Centre + stoppage clearances. |
intercepts |
numeric | Possessions won from an opposition disposal. |
metresGained |
numeric | Net metres the ball was moved towards goal (can be negative). |
scoreInvolvements |
numeric | Number of scoring chains the player was involved in. |
turnovers |
numeric | Disposals that gave possession to the opposition. |
clangers |
numeric | Errors (e.g. free kicks conceded, ineffective disposals). |
freesFor, freesAgainst |
numeric | Free kicks awarded to and against the player. |
dreamTeamPoints |
numeric | AFL Fantasy score calculated from the player’s statistics. |
ratingPoints |
numeric | Champion Data player rating. Missing for AFLW. |
Extended statistics (AFL men’s only)
In the AFLW data, extendedStats is a single column of NAs.
| variable | class | description |
|---|---|---|
extendedStats.centreBounceAttendances |
numeric | Centre bounces the player attended. |
extendedStats.contestDefOneOnOnes, extendedStats.contestDefLosses, extendedStats.contestDefLossPercentage |
numeric | One-on-one contests as the defender, how many were lost, and the loss percentage. |
extendedStats.contestOffOneOnOnes, extendedStats.contestOffWins, extendedStats.contestOffWinsPercentage |
numeric | One-on-one contests as the attacker, how many were won, and the win percentage. |
extendedStats.contestedPossessionRate |
numeric | Contested possessions as a percentage of total possessions. |
extendedStats.effectiveDisposals, extendedStats.effectiveKicks |
numeric | Disposals / kicks that reached the intended target. |
extendedStats.kickEfficiency |
numeric | Effective kicks as a percentage of kicks. |
extendedStats.kickToHandballRatio |
numeric | Kicks divided by handballs. |
extendedStats.groundBallGets, extendedStats.f50GroundBallGets |
numeric | Loose-ball gathers at ground level, overall and in the forward 50. |
extendedStats.interceptMarks |
numeric | Marks taken from an opposition disposal. |
extendedStats.marksOnLead |
numeric | Marks taken while leading at the ball. |
extendedStats.hitoutsToAdvantage, extendedStats.hitoutToAdvantageRate |
numeric | Hitouts that reached a teammate, as a count and as a percentage of hitouts. |
extendedStats.hitoutWinPercentage |
numeric | Percentage of ruck contests won. |
extendedStats.ruckContests |
numeric | Ruck contests attended. |
extendedStats.kickins, extendedStats.kickinsPlayon |
numeric | Kick-ins after an opposition behind, and how many were played on. |
extendedStats.pressureActs, extendedStats.defHalfPressureActs |
numeric | Acts that pressured an opponent, overall and in the defensive half. |
extendedStats.scoreLaunches |
numeric | Chains that started with the player and ended in a score. |
extendedStats.spoils |
numeric | Spoils (punching the ball away to stop a mark). |
Always missing
gamesPlayed, superGoals, ranking, goalEfficiency, interchangeCounts, lastUpdated and shotEfficiency were all NA in the 2025 AFL and AFLW data and can be dropped.
Teaching ideas
Wrangling: sum
goals * 6 + behindsbyproviderIdandteamStatusto rebuild each match score, then pivot to one row per match with the home and away scores and the margin.Dates and time zones: convert
utcStartTimeto Melbourne local time and compare day and night matches, or the fixtures in different states.Visualisation: compare the distributions of disposals, tackles or metres gained across positions (
player.player.position). Grouping the named positions into backs, midfield, forwards, ruck and interchange is a useful exercise in itself.Fair comparisons: rescale counts by
timeOnGroundPercentagebefore ranking players, and discuss why raw totals favour players who spent longer on the ground.AFLW vs AFL: compare per-player statistics between the competitions. AFLW quarters are shorter, so this leads to a discussion of rates versus totals.
Modelling: predict the match margin from team totals of inside 50s, contested possessions and clearances, or cluster players into roles using their statistical profiles.
Data quality: find the all-
NAand duplicate columns (see the data dictionary) and decide what to drop.Season averages: average each player’s match statistics over the season, giving a fresh version of the
aflwdata used in the mulgar PCA chapter. Students can then run PCA or a tour, or cluster players into roles. For 2025 AFLW this gives 513 players, but some played only one or two matches. Deciding on a minimum number of games, and whether to average all matches or weight by time on ground, is a good discussion. Comparing seasons shows whether the PCA structure is stable from year to year.library(dplyr) aflw_season <- aflw |> select(where(\(x) !all(is.na(x))), -starts_with("player.player.player")) |> arrange(utcStartTime) |> # Group by ID only, as names can change within a season; keep the latest name group_by(player.playerId) |> summarise(across(c(player.givenName, player.surname, team.name), last), games = n(), across(timeOnGroundPercentage:clearances.totalClearances, mean), .groups = "drop")
Things to watch out for
Checked against the 2025 AFLW data and round 1 of the 2025 AFL (men’s) data.
- Missing and duplicate columns: seven columns are entirely
NA,ratingPointsand allextendedStatsare missing for AFLW, and theplayer.player.player.*columns repeat theplayer.*ones (see the data dictionary). Code written for the men’s data may break on AFLW. - Zero is not the same as undefined:
goalAccuracyis 0 when a player had no shots (3,053 of 4,918 AFLW rows), anddisposalEfficiencyis 0 when a player had no disposals. Set these toNAbefore averaging, or the averages will be pulled down. - Time on ground varies a lot: substitutes (
SUBin the men’s data) typically play about 30% of the match, and players injured during a match have low values too (35 AFLW rows under 25%). Counts like disposals and tackles depend heavily on this, so compare rates rather than raw totals. - AFLW and AFL are not directly comparable: AFLW teams have fewer players (42–43 player rows per match vs 46 for AFL in 2025) and shorter quarters, and AFLW had no substitutes in 2025.
- Rebuilt scores may not match the official score: rushed behinds are not credited to any player, so summing
goals * 6 + behindsover a team’s players can undercount the team’s score. - Positions are the named team-sheet positions, not where the player actually spent the match. Players move around a lot, especially midfielders and interchange players.
- Finals continue the round numbering: in 2025 AFLW, rounds 13–16 are
Finals Week 1toGrand Final. Filter onround.nameif you only want the home-and-away season, and remember that only finalists have these extra matches when calculating per-game averages. - Player names change, so join on
player.playerId: across the 2024 and 2025 AFLW seasons, 14 players appear under more than one name with the same ID. Two have new surnames, likely from marriage (Breann Moody → Breann Harrington, Ashleigh Saint → Ashleigh Woodland). The others are switches between short and full first names (Ally/Alexandra Anderson, Eliza/Elizabeth McNamara, Gab/Gabriella Pound) or a dropped middle initial used to tell apart players with the same name (Ella K. Smith → Ella Smith). Some changes happen part-way through a season: Ashleigh Woodland’s name changed for the last 2024 match, and Bess/Elizabeth Keaney switches within 2024. Grouping or joining by name will split these players into two, so use the ID and attach the most recent name afterwards. metresGainedcan be negative (43 AFLW rows), when a player’s disposals moved the ball back towards their own goal.utcStartTimeis text in UTC: parse it withlubridate::ymd_hms()and convert to"Australia/Melbourne"(or the venue’s time zone) before looking at day or time of play.- Data definitions change over time (new statistics, rule changes such as the substitute rule, and AFLW season length and team numbers), so be careful when comparing across seasons.
- Scraped data: fitzRoy reads from the AFL website, so it can break when the website changes, and downloads are slow for a full season (about 20 seconds for AFLW). Save the data locally rather than downloading it every time a document is rendered.
Used in
- Cook, D. and Laa, U. Interactively exploring high-dimensional data and models in R, Chapter 4: Principal component analysis. The AFLW example uses a tour and PCA on 29 standardised player statistics. It finds that four components summarise field play, offence versus defence, time on ground and clearances, and errors, and identifies the exceptional players. The chapter’s exercises build “skill” variables and transform the skewed statistics. It uses the
aflwdata from the mulgar package: each of the 381 players’ average statistics over the 2021 AFLW season, built from fitzRoy data with shorter variable names (e.g.time_pct,frees_for). Averaging the match-level output offetch_player_stats()byplayer.playerIdgives a fresh version for any season.
References
- Day, J., Nguyen, R. and Lane, O. (2026). fitzRoy: Easily Scrape and Process AFL Data. R package version 1.8.0. doi:10.32614/CRAN.package.fitzRoy
- Cook, D. and Laa, U. Interactively exploring high-dimensional data and models in R. https://dicook.github.io/mulgar_book/