| maketable | R Documentation | 
Make a league table
maketable(df = NULL, Season = NULL, tier = NULL, pts = 3)
df | 
 The results dataframe  | 
Season | 
 The Season  | 
tier | 
 The tier  | 
pts | 
 Points for a win. Default is 3.  | 
a dataframe with a league table
The table that is produced is based upon 3 points for a win (unless otherwise defined), 1 for a draw and 0 for a loss. The table is sorted based upon descending GD and then descending GF as tie-breakers. Different leagues have had different methods for tie-breaks over the years. This league table is a simple generic one. It also does not evaluate points deducted from teams or if games were artificially awarded to one side based on games not being played.
maketable(df=england,Season=2013,tier=1,pts=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.