Learn R Programming

fitzRoy (version 1.7.0)

Easily Scrape and Process AFL Data

Description

An easy package for scraping and processing Australia Rules Football (AFL) data. 'fitzRoy' provides a range of functions for accessing publicly available data from 'AFL Tables' , 'Footy Wire' and 'The Squiggle' . Further functions allow for easy processing, cleaning and transformation of this data into formats that can be used for analysis.

Copy Link

Version

Install

install.packages('fitzRoy')

Monthly Downloads

716

Version

1.7.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

James Day

Last Published

March 12th, 2026

Functions in fitzRoy (1.7.0)

get_aflw_player_stats

Return get match stats for all current AFLW matches
fetch_team_stats_afltables

Fetch Team Statistics from AFLTables
get_footywire_stats

Scrape footywire player statistics.
get_aflw_detailed_match_data

Get detailed womens match data (internal function)
get_aflw_match_data

Get AFLW match data
get_footywire_match_results

Get footywire Match Results
get_afltables_stats

Return afltables match stats
get_afl_fixture

Get AFL fixture
get_score_progression_raw

Get raw score progression data
fetch_scores

Fetch Supercoach or Dream Team Scores
fetch_squiggle_data

Access Squiggle data using the squiggle API service.
fetch_supercoach_scores

Fetch Supercoach Scores
get_aflw_rounds

Get rounds (internal function)
get_afl_cookie

Get AFL Stats cookie (internal function)
get_squiggle_data

Access Squiggle data using the squiggle API service.
get_footywire_betting_odds

Get AFL match betting odds from https://www.footywire.com
fetch_team_stats_footywire

Fetch Team Statistics from Footywire
get_footywire_match_ids

Get aftables match ids
get_fixture

Get upcoming fixture from https://www.footywire.com
fetch_team_stats_vflstats

Fetch VFLM/VFLW Team Stats from vflstats
fitzRoy-package

fitzRoy: Easily Scrape and Process AFL Data
update_footywire_stats

Update the included footywire stats data to the specified date.
get_aflw_round_data

Get match data (internal function)
get_match_results

Get basic match results from afltables.com
get_fryzigg_stats

Return get match stats from fryziggafl.net/api/
fetch_team_stats

Fetch Team Statistics
replace_venues

Internal function to ensure venue names match between different sources and also name changes across time. This gets applied to any web scraper, transforming all of them to AFL Tables naming conventions.
get_aflw_cookie

Get AFL Stats cookie
team_abr_afl

Internal function to return team name abbreviation for AFL API
parse_team_abbr

Internal function to ensure names match between different sources and also name changes. This gets applied to any web scraper
mapping_afltables

AFL Tables Mapping: AFL Tables Naming Convention Mapping
team_abr_afl2

Internal function to return team name abbreviation for AFL API
replace_teams

Internal function to ensure names match between different sources and also name changes. This gets applied to any web scraper
plot_score_worm

Plot Score Worm
get_aflw_detailed_data

Get detailed AFLW data
plot_score_worm_totals

Plot Score Worm Totals
%>%

Pipe operator
return_ladder

Recreate the ladder for every or any given round and/or season
fetch_awards

Fetch AFL Awards Data
fetch_fantasy_scores

Fetch AFL Fantasy (Dream Team) Scores
fetch_awards_allaustralian

Fetch AFL All-Australian Team or Squad
fetch_fixture

Return the fixture for a particular round of matches
fetch_awards_brownlow

Fetch Brownlow Medal Data
dictionary_afltables

AFL Tables Data Dictionary: AFL Tables Column Formats
fetch_coaches_votes

Fetch Coaches Votes
calculate_coaches_vote_possibilities

Calculate Coaches Vote Possibilities
fetch_ladder

Fetch Ladder
fetch_betting_odds_footywire

Fetch AFL match betting odds from https://www.footywire.com
fetch_outofcontract

Fetch Out of Contract AFL Players
fetch_lineup

Return the selected lineup for any completed or upcoming matches
fetch_player_details

Fetch Player Details
fetch_score_worm_data

Plot Score Worm
fetch_rising_star

Fetch AFL Rising Star Nominations or Stats
fetch_outofcontract_footywire

Fetch Out of Contract AFL Players from FootyWire
fetch_player_stats

Fetch Player Stats
fetch_results

Fetch Results
get_afl_colour_palettes

Returns a table with the colour palettes for all teams