Learn R Programming

fitzRoy (version 1.6.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

653

Version

1.6.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

James Day

Last Published

December 10th, 2024

Functions in fitzRoy (1.6.0)

fetch_score_worm_data

Plot Score Worm
get_aflw_round_data

Get match data (internal function)
get_footywire_match_ids

Get aftables match ids
get_aflw_detailed_data

Get detailed AFLW data
get_aflw_rounds

Get rounds (internal function)
plot_score_worm_totals

Plot Score Worm Totals
get_footywire_stats

Scrape footywire player statistics.
update_footywire_stats

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

Plot Score Worm
get_aflw_detailed_match_data

Get detailed womens match data (internal function)
team_abr_afl

Internal function to return team name abbreviation for AFL API
get_score_progression_raw

Get raw score progression data
get_fixture

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

Get basic match results from afltables.com
return_ladder

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

Get AFLW match data
get_fryzigg_stats

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

Get footywire Match Results
get_aflw_player_stats

Return get match stats for all current AFLW matches
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
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
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.
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
%>%

Pipe operator
fetch_fixture

Return the fixture for a particular round of matches
fetch_betting_odds_footywire

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

Fetch Ladder
fetch_results

Fetch Results
fetch_player_details

Fetch Player Details
dictionary_afltables

AFL Tables Data Dictionary: AFL Tables Column Formats
calculate_coaches_vote_possibilities

Calculate Coaches Vote Possibilities
fetch_lineup

Return the selected lineup for any completed or upcoming matches
fetch_player_stats

Fetch Player Stats
get_afl_colour_palettes

Returns a table with the colour palettes for all teams
fetch_coaches_votes

Fetch Coaches Votes
get_afl_cookie

Get AFL Stats cookie (internal function)
get_afltables_stats

Return afltables match stats
get_afl_fixture

Get AFL fixture
get_aflw_cookie

Get AFL Stats cookie
fitzRoy-package

fitzRoy: Easily Scrape and Process AFL Data
fetch_squiggle_data

Access Squiggle data using the squiggle API service.