games_between_sum: Function to List the summary stats of all games ever between...

Description Usage Arguments Value Examples

Description

Function to List the summary stats of all games ever between two teams

Usage

1
games_between_sum(df = NULL, teamname1 = NULL, teamname2 = NULL)

Arguments

df

The results dataframe

teamname1

teamname1

teamname2

teamname2

Value

a dataframe with summary of results. Will be empty dataframe if never played.

Examples

1
2
3
games_between_sum(england, "Exeter City", "York City")
games_between_sum(england, "Aston Villa", "York City")
games_between_sum(england, "Manchester United", "Liverpool")

Example output

         home  P GF GA GD  W D L
1 Exeter City 44 37 22 15 14 3 5
2   York City 44 39 29 10 10 4 8
         home P GF GA GD W D L
1 Aston Villa 4  5  0  5 2 0 0
2   York City 4  1  2 -1 0 1 1
               home   P  GF GA GD  W  D  L
1         Liverpool 166 138 93 45 39 19 25
2 Manchester United 166 140 78 62 42 25 16

engsoccerdata documentation built on May 2, 2019, 8:29 a.m.