get_aflw_player_stats: Return get match stats for all current AFLW matches
Description
get_aflw_player_stats returns a data frame containing match stats for each game within the specified date range
Usage
get_aflw_player_stats(
start = 2017,
end = as.numeric(format(Sys.Date(), "%Y"))
)
Arguments
start
optional, character string or numeric for start year, in "YYYY"ormat
end
optional, character string or numeric for end year, in "YYYY"format
Value
a data table containing player stats for each game between start and end years
Details
This function returns a data frame containing match stats for each game within the specified date range. Returns 1 row per player.
The date for this fucntion is called from an API with data stored in a PostgreSQL database on AWS.
Updated at the conclusion of every game. A cached version to come.