View source: R/fb_team_player_stats.R
fb_team_player_stats | R Documentation |
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 = 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: "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
## Not run: try({ 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") }) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.