View source: R/fb_team_match_log_stats.R
fb_team_match_log_stats | R Documentation |
Returns all match statistics for a team(s) in a given season
fb_team_match_log_stats(team_urls, stat_type, time_pause = 3)
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" |
returns a dataframe with the selected stat outputs of all games played by the selected team(s)
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.