fb_team_match_log_stats {worldfootballR} | R Documentation |
Get team match log stats
Description
Returns all match statistics for a team(s) in a given season
Usage
fb_team_match_log_stats(team_urls, stat_type, time_pause = 3)
Arguments
team_urls |
the URL(s) of the teams(s) (can come from fb_teams_urls()) |
stat_type |
the type of statistic required |
time_pause |
the wait time (in seconds) between page loads The statistic type options (stat_type) include: "shooting", "keeper", "passing", "passing_types", "gca", "defense", "misc" |
Value
returns a dataframe with the selected stat outputs of all games played by the selected team(s)
Examples
## Not run:
try({
# for single teams:
man_city_url <- "https://fbref.com/en/squads/b8fd03ef/Manchester-City-Stats"
fb_team_match_log_stats(team_urls = man_city_url, stat_type = "passing")
})
## End(Not run)
[Package worldfootballR version 0.6.2 Index]