Lists all matches that a team has played in that ended in a scoreline

Description

Lists all matches that a team has played in that ended in a scoreline

Usage

1
score_team(df = NULL, score = NULL, teamname = NULL)

Arguments

df

the results dataset

score

the scoreline

teamname

the team

Value

a dataframe of games ending in that result

Examples

1
2
score_team(england, "1-0", "Arsenal")  # All games ending 1-0 or 0-1 involving Arsenal
score_team(england, "4-3", "Coventry City")  # All games ending 4-3 or 3-4 involving Coventry City