Basic Usage
All of the functions behave the same. The following are some examples using the fetch_fixture
function but can equally be applied to any of the family of fetch_
functions.
This is the same as
fetch_fixture(season = 2021, comp = "AFLM", source = "AFL")
We can return just one round instead of the whole fixture.
fetch_fixture(season = 2021, round_number = 2) %>%
select(compSeason.name, round.name, home.team.name, away.team.name, venue.name)
We could also return the AFLW fixture instead.
fetch_fixture(season = 2021, comp = "AFLW") %>%
select(compSeason.name, round.name,
home.team.name, away.team.name,
venue.name)
Lastly - we can choose a different source. Note that the field names and even the names of the teams and/or venues will be different for difference sources.
fetch_fixture(2021, round_number = 1, source = "squiggle")
It should also be noted that the various sources of data have their own functions that can be called directly.
# The following are the same
fetch_fixture(2021, round_number = 5, source = "squiggle")
fetch_fixture_squiggle(2021, round_number = 5)
Womens Data
With these new functions we now have access to consistent AFLW data for the first time!
At a high level, any fetch_
function will allow you to specify the that comp = "AFLW
and will return data. Please note that Womens data only exists when source = "AFL"
, which is the default for all fetch_
functions.
Read the full AFL Womens Vingette for specific examples.