Learn R Programming

⚠️There's a newer version (1.6.0) of this package.Take me there.

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

538

Version

1.3.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

James Day

Last Published

March 1st, 2023

Functions in fitzRoy (1.3.0)

get_aflw_player_stats

Return get match stats for all current AFLW matches
get_afl_cookie

Get AFL Stats cookie (internal function)
get_footywire_match_ids

Get aftables match ids
get_footywire_match_results

Get footywire Match Results
get_aflw_rounds

Get rounds (internal function)
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_detailed_match_data

Get detailed womens match data (internal function)
get_aflw_detailed_data

Get detailed AFLW data
return_ladder

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

Get match data (internal function)
get_fixture

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

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

Get basic match results from afltables.com
get_afl_fixture

Get AFL fixture
get_squiggle_data

Access Squiggle data using the squiggle API service.
get_score_progression_raw

Get raw score progression data
replace_teams

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

Update the included footywire stats data to the specified date.
fitzRoy-package

fitzRoy: Easily Scrape and Process AFL Data
get_footywire_stats

Scrape footywire player statistics.
team_abr_afl

Internal function to return team name abbreviation for AFL API
get_afl_colour_palettes

Returns a table with the colour palettes for all teams
team_abr_afl2

Internal function to return team name abbreviation for AFL API
get_fryzigg_stats

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

Fetch Ladder
fetch_betting_odds_footywire

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

Fetch Coaches Votes
fetch_results

Fetch Results
fetch_lineup

Return the selected lineup for any completed or upcoming matches
fetch_squiggle_data

Access Squiggle data using the squiggle API service.
calculate_coaches_vote_possibilities

Calculate Coaches Vote Possibilities
fetch_player_stats

Fetch Player Stats
fetch_fixture

Return the fixture for a particular round of matches
fetch_player_details

Fetch Player Details
get_aflw_cookie

Get AFL Stats cookie
get_aflw_match_data

Get AFLW match data
get_afltables_stats

Return afltables match stats