fb_advanced_match_stats {worldfootballR} | R Documentation |
Get FBref advanced match stats
Description
Returns data frame of selected statistics for each match, for either whole team or individual players. Multiple URLs can be passed to the function, but only one 'stat_type' can be selected. Replaces the deprecated function get_advanced_match_stats()
Usage
fb_advanced_match_stats(match_url, stat_type, team_or_player, time_pause = 3)
Arguments
match_url |
the three character country code for all countries |
stat_type |
the type of team statistics the user requires |
team_or_player |
result either summarised for each team, or individual players |
time_pause |
the wait time (in seconds) between page loads The statistic type options (stat_type) include: "summary", "passing", "passing"_types, "defense" , "possession", "misc", "keeper" |
Value
returns a dataframe of a selected team statistic type for a selected match(es)
Examples
## Not run:
try({
urls <- fb_match_urls(country = "AUS", gender = "F", season_end_year = 2021, tier = "1st")
df <- fb_advanced_match_stats(match_url=urls,stat_type="possession",team_or_player="player")
})
## End(Not run)
[Package worldfootballR version 0.6.2 Index]