Learn R Programming

fitzRoy (version 0.3.3)

get_fryzigg_stats: Return get match stats from fryziggafl.net/api/

Description

get_fryzigg_stats returns a data frame containing match stats for each game within the specified date range

Usage

get_fryzigg_stats(start = 1897, 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. The data from contains all stats from the fryziggafl api and 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.

Examples

Run this code
# NOT RUN {
#
# }
# NOT RUN {
# Gets all data
get_fryzigg_stats()
# Specify a date range
get_fryzigg_stats(start = 2018, end = 2019)
# }

Run the code above in your browser using DataLab