Returns the team's players season stats for a selected team(s) and stat type
fb_team_player_stats(team_urls, stat_type, time_pause = 2)
the URL(s) of the teams(s) (can come from fb_teams_urls())
the type of statistic required
the wait time (in seconds) between page loads
The statistic type options (stat_type) include:
"standard", "shooting", "passing", "passing_types", "gca", "defense", "possession" "playing_time", "misc", "keeper", "keeper_adv"
returns a dataframe of all players of a team's season stats
if (FALSE) {
fb_team_player_stats("https://fbref.com/en/squads/d6a369a2/Fleetwood-Town-Stats",
stat_type = 'standard')
league_url <- fb_league_urls(country = "ENG", gender = "M",
season_end_year = 2022, tier = "3rd")
team_urls <- fb_teams_urls(league_url)
multiple_playing_time <- fb_team_player_stats(team_urls,
stat_type = "playing_time")
}