We have included a function to interface with the Fryzigg API. This data set includes advanced AFL stats that are typically not available on existing open data sites such as footywire.com and afltables.com. Many thanks to Fryzigg on providing this API interfect.
First we need to grab a few packages. If you don’t have any of these, you’ll need to install them.
The primary way to access the data is via the get_fryzigg_stats()
function. This function provides an easy interface to the Fryzigg API. It takes two arguments - start
and end
which are the years in which data will be returned (inclusive). They should be provided in YYYY format.
We can get a quick view the the fields returned from the fryzigg
API.
You can see the data includes both player and team data, where each row is a game by a player.