create_table: Create weekly points

Description Usage Arguments Details Value

View source: R/data_league_table.R

Description

A function that takes a data frame of matchData and recreates the league table by adding points on a weekly basis based on the date timestamps of the data frame.

Make sure the match data has been recreated, i.e. it needs to be stored in redis, then ordered by date to work.

Usage

1
create_table(KEYS, matchData)

Arguments

matchData

A data frame that contains rows of single matches that have been played between two teams.

Details

Redis Keys used;

Value

Nothing. The points and goal information is stored in redis.


ntyndall/footballstats documentation built on Aug. 13, 2019, 1:36 p.m.