Learn R Programming

worldfootballR (version 0.6.2)

get_team_match_results: Get team match results

Description

Returns all game results for a team in a given season

Usage

get_team_match_results(team_url, time_pause = 3)

Value

returns a dataframe with the results of all games played by the selected team(s)

Arguments

team_url

the URL for the team season

time_pause

the wait time (in seconds) between page loads

Examples

Run this code
if (FALSE) {
try({
# for single teams:
man_city_url <- "https://fbref.com/en/squads/b8fd03ef/Manchester-City-Stats"
get_team_match_results(man_city_url)
})
}

Run the code above in your browser using DataLab