score_team: Lists all matches that a team has played in that ended in a...

View source: R/score_team.R

score_teamR Documentation

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

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

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

jalapic/engsoccerdata documentation built on Nov. 15, 2022, 3:34 a.m.