maketable: Make a league table

Description Usage Arguments Value Notes Examples

View source: R/maketable.R

Description

Make a league table

Usage

1
maketable(df = NULL, Season = NULL, tier = NULL, pts = 3)

Arguments

df

The results dataframe

Season

The Season

tier

The tier

pts

Points for a win. Default is 3.

Value

a dataframe with a league table

Notes

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.

Examples

1
maketable(df=england,Season=2013,tier=1,pts=3)

mrcreel/soccer_data documentation built on May 23, 2019, 7:14 a.m.