Description Usage Arguments Details Value
View source: R/data_league_table.R
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.
1 | create_table(KEYS, matchData)
|
matchData |
A data frame that contains rows of single matches that have been played between two teams. |
Redis Keys used;
[KEY] :: c_startDate:{comp_id}:{season}
[SET] :: leagueMatchSet
[HASH] :: cwt_l:{comp_id}:{season}:{week#}:{team_id}
Nothing. The points and goal information is stored in redis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.